def with_429

cswap-bend-cli@0.1.0.0 · urec.bend:45

import cswap-bend-cli@0.1.0.0/urec.bend as Urec
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/ustore.bend as Ustore

45def with_429(rl: Bool, +now: U32, +row: Json.Json) -> Json.Json:
46  match rl:
47    case True{}:
48      Json.set("last429At", Ustore.fl(now), row)
49    case False{}:
50      row

Uses (5)

Used by (1)