def apply_ok
cswap-bend-cli@0.1.0.0 · urec.bend:27
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/poll.bend as Poll
import cswap-bend-cli@0.1.0.0/ustore.bend as Ustore
27def apply_ok(+row: Json.Json, +usage: Json.Json, plan: Maybe<&2, Poll.Sched>, +now: U32) -> Json.Json:
28 Json.set("authDeadStrikes", Json.JNum{"0"},
29 Json.set("rejectedFingerprint", Json.JNull{},
30 Json.set("backoffUntil", Json.JNull{},
31 Json.set("lastError", Json.JNull{},
32 Json.set("consecutiveFailures", Json.JNum{"0"},
33 with_plan(plan, Json.set("fetchedAt", Ustore.fl(now), Json.set("lastGood", usage, Json.set("lastAttemptAt", Ustore.fl(now), release(row))))))))))