def hit_decision
import mylsm-lsm-store@0.6.0.1/src/CrashPoint.bend as CrashPointimport Base
10# Resolve the hit for decision for the crash injection interface.
11def hit_decision(active: Bool, name: String) -> IO(Result<&1, &1, U32 & String, Unit>):
12 match active:
13 case True{}:
14 stop(name)
15 case False{}:
16 IO.pure(Result<&1, &1, U32 & String, Unit>, Done{Unit{}})