def snapshot.open.response

mylsm-lsm-store@0.6.0.1 · src/coordinator/ByteClient.bend:243

import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as ByteClient
import Base
import mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend as Client
import mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend as Protocol

243def snapshot.open.response(
244  result: Result<&1, &1, Client.Error, Protocol.Response>
245) -> Result<&1, &1, Client.Error, U32>:
246  match result:
247    case Fail{error}: Fail{error}
248    case Done{response}:
249      match response:
250        case Protocol.Response{_, _, _, status, payload}:
251          snapshot.open.status(status, payload)

Uses (5)

Used by (1)