OwnerCursorCodec.close: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend as OwnerCursorCodec Lines 57-62 of mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend&start_line=57&end_line=62 import Base import mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend as Protocol import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # Accepts cursor close only when success carries no trailing payload. def close(status: Protocol.ResponseStatus, payload: Bytes.Bytes) -> CloseDecision: match status: case Protocol.Success{}: close.measured(Bytes.length(payload)) case _: CloseRejected{status} Uses (5): https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=length https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend&name=CloseDecision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend&name=close.measured https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend&name=ResponseStatus