OwnerOpenPolicy.choose: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerOpenPolicy.bend as OwnerOpenPolicy Lines 15-19 of mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerOpenPolicy.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerOpenPolicy.bend&start_line=15&end_line=19 import Base # Keeps the opened handle only when the requested options match the effective ones. def choose(local: Bool, matches: Bool) -> Decision: match matches: case True{}: matched(local) case False{}: RejectOptions{} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerOpenPolicy.bend&name=Decision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerOpenPolicy.bend&name=matched