def close.success
mylsm-lsm-store@0.6.0.1 · src/transfer/BackupOwnerCursorIo.bend:201
import mylsm-lsm-store@0.6.0.1/src/transfer/BackupOwnerCursorIo.bend as BackupOwnerCursorIo
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/ByteClient.bend as ByteClient
import mylsm-lsm-store@0.6.0.1/src/transfer/BackupIo.bend as BackupIo
201def close.success(
202 +destination: String,
203 +temporary: String,
204 file: File,
205 source: OwnerSource
206) -> IO(Result<&1, &1, BackupIo.Error, Unit>):
207 match source:
208 case OwnerSource{session, snapshot_id, _, _}:
209 do IO<Result<&1, &1, BackupIo.Error, Unit>>:
210 closed : Client.Session & Result<&1, &1, Client.Error, Unit> <-
211 ByteClient.snapshot.close(session, snapshot_id)
212 close.success.snapshot(destination, temporary, file, closed)