def fallback.pick
import cswap-bend-cli@0.1.0.0/usage/req.bend as Reqimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
151# A probe that failed after a usage-endpoint 429 hands back the 429.
152def fallback.pick(p: Result<&2, &2, Err, Json.Json>, orig: Err) -> Result<&2, &2, Err, Json.Json>:
153 match p:
154 case Done{d}:
155 Done{d}
156 case Fail{e}:
157 Fail{orig}