Lease.Lease.observe: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/lease.bend as Lease Lines 67-73 of bend-kube-runtime@0.2.0.0/src/lease.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/lease.bend&start_line=67&end_line=73 import Base import bend-kube-runtime@0.2.0.0/src/json.bend as J # The record seen now: the old observation if nothing changed, else a new # one stamped now. def Lease.observe(+l: J.Json, o: Obs, +now: U32) -> Obs: match o: case Obs{+h, +r, at}: Lease.observe.go(Lease.holder(l), Lease.renew_time(l), Obs{h, r, at}, now, Bool.and(String.eq(h, Lease.holder(l)), String.eq(r, Lease.renew_time(l)))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/lease.bend&name=Lease.holder https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/lease.bend&name=Lease.observe.go https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/lease.bend&name=Lease.renew_time https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/lease.bend&name=Obs