def snapshot.close.registry
import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshotimport Base
1160# Maps a valid registry release to successful snapshot closure.
1161def snapshot.close.registry(decision: RegistryReleaseDecision) -> SnapshotCloseDecision:
1162 match decision:
1163 case Released{registry}: SnapshotClosed{registry}
1164 case InvalidRelease{registry}: InvalidSnapshotClose{registry}