def switch_opts

cswap-bend-cli@0.1.0.0 · daemon/entry.bend:46

import cswap-bend-cli@0.1.0.0/daemon/entry.bend as Entry
import Base
import cswap-bend-cli@0.1.0.0/swlive.bend as L

46# How the daemon switches: the delay before the post-switch check
47# ($CSWAP_SWITCH_VERIFY_DELAY_MS, default 2000) and where the ownership lookup
48# goes ($CSWAP_SWITCH_ORACLE_FILE answers from a file; else the profile API).
49def switch_opts(d: Result<&1, &1, U32 & String, String>, o: Result<&1, &1, U32 & String, String>) -> L.Opts:
50  L.Opts{Maybe.default(&2, U32, U32.read(env_or(d, "2000")), 2000), oracle_of(o)}

Uses (9)

Used by (1)