def lock.seen

cswap-bend-cli@0.1.0.0 · warn.bend:71

import cswap-bend-cli@0.1.0.0/warn.bend as Warn
import Base

71def lock.seen(other: Maybe<&2, String>, +k: String, +slot: String, ls: LS) -> LS:
72  match other ls:
73    case Some{o} LS{s, msgs}:
74      LS{s, append_str(msgs, "Account-" ++ o ++ " and Account-" ++ slot ++ " report identical usage and reset times" ++ dash() ++ "they may be the same account (issue #117). If it persists, log in with the missing account and re-add it: cswap add --slot N")}
75    case None{} LS{s, msgs}:
76      LS{Seen{k, slot} <> s, msgs}

Uses (8)

Used by (1)