def snapshot.open
mylsm-lsm-store@0.6.0.1 · src/coordinator/ByteClient.bend:259
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 bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
259
260def snapshot.open(
261 session: Client.Session
262) -> IO(Client.Session & Result<&1, &1, Client.Error, U32>):
263 do IO<Client.Session & Result<&1, &1, Client.Error, U32>>:
264 pair : Client.Session & Result<&1, &1, Client.Error, Protocol.Response> <-
265 Client.session.call(session, 9, Bytes.new(0))
266 return snapshot.open.result(pair)