def hit

mylsm-lsm-store@0.6.0.1 · src/CrashPoint.bend:18

import mylsm-lsm-store@0.6.0.1/src/CrashPoint.bend as CrashPoint
import Base
import mylsm-lsm-store@0.6.0.1/src/Console.bend as Console
import mylsm-lsm-store@0.6.0.1/src/CrashPointPolicy.bend as Policy

18# Test-only checkpoint. Environment lookup and activation policy stay in Bend;
19# only marker emission and SIGSTOP remain in the host twins.
20def hit(+name: String) -> IO(Result<&1, &1, U32 & String, Unit>):
21  do IO<Result<&1, &1, U32 & String, Unit>>:
22    configured : String <- IO.try(String, Console.get_env("MYLSM_CRASH_POINT"))
23    hit_decision(Policy.enabled(configured, name), name)

Uses (11)

Used by (11)