def response.validate

mylsm-lsm-store@0.6.0.1 · src/coordinator/ClientPolicy.bend:62

import mylsm-lsm-store@0.6.0.1/src/coordinator/ClientPolicy.bend as ClientPolicy
import Base

62def response.validate(
63  generation: Nat,
64  generation_matches: Bool,
65  correlation_matches: Bool
66) -> Decision:
67  match generation_matches:
68    case False{}: ClientStaleOwner{}
69    case True{}:
70      match correlation_matches:
71        case True{}: ClientConfirmed{RequestCompleted{generation}}
72        case False{}: ClientProtocolFailure{}

Uses (4)

Used by (1)