def decide.got

ezx@1.11.0.0 · src/add/hub.bend:100

import ezx@1.11.0.0/src/add/hub.bend as Hub
import Base
import ezx@1.11.0.0/src/add/world.bend as A
import ezx@1.11.0.0/src/lock/world.bend as W

100# the package the hub served for the hash, or why it served none
101def decide.got(answer: W.Answer, +hash: String, +world: A.World) -> Verdict:
102  match answer:
103    case W.Got{how, manifest, ss}:
104      decide.body(W.hub.how(how, hash, manifest, ss), hash)
105    case W.Miss{why}:
106      Stop{W.hub.why(True{}, hash, A.hub(world), why)}
107    case _:
108      Stop{"ez: " ++ hash ++ " was not answered with a package"}

Uses (10)

Used by (1)