def snapshot.cursor.next.response

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

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
import mylsm-lsm-store@0.6.0.1/src/coordinator/CursorCodec.bend as CursorCodec

420def snapshot.cursor.next.response(
421  result: Result<&1, &1, Client.Error, Protocol.Response>
422) -> Result<&1, &1, Client.Error, CursorCodec.Frame>:
423  match result:
424    case Fail{error}: Fail{error}
425    case Done{response}:
426      match response:
427        case Protocol.Response{_, _, _, status, payload}:
428          snapshot.cursor.next.status(status, payload)

Uses (5)

Used by (1)