def registry.release
import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshotimport Base
417# Releases one closed snapshot's reservation without changing active readers.
418def registry.release(registry: Registry, released_bytes: Nat) -> RegistryReleaseDecision:
419 match registry:
420 case Registry{snapshot_count, retained_bytes}:
421 registry.release.count(nat.duplicate(snapshot_count), retained_bytes,
422 released_bytes)