def Event.sent
bend-kube-runtime@0.2.0.0 · src/helpers.bend:107
import bend-kube-runtime@0.2.0.0/src/helpers.bend as Helpers
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
import bend-kube-runtime@0.2.0.0/src/client.bend as Cl
import bend-kube-runtime@0.2.0.0/src/log.bend as L
107def Event.sent(r: Result<&2, &2, Cl.KErr, J.Json>) -> IO(Unit):
108 match r:
109 case Done{e}:
110 IO.pure(Unit, Unit{})
111 case Fail{e}:
112 L.Log.warn("publishing event failed", [L.Log.kv("error", Cl.KErr.show(e))])