def decide.hash

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

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

118# a `0x` name the hub answered, or an answer that names none
119def decide.hash(ok: Bool, +hash: String, +world: A.World) -> Verdict:
120  match ok:
121    case True{}:
122      decide.pkg(heard(A.hubs(world), hash), hash, world)
123    case False{}:
124      Stop{"ez: the hub at " ++ A.hub(world) ++ " names no package " ++ nv(world) ++
125        " (it answered `" ++ hash ++ "`)"}

Uses (10)

Used by (1)