Cleanup actors

This commit is contained in:
Emery Hemingway 2024-03-01 14:01:42 +00:00
parent d365a1e6e5
commit 1ce96560f4
1 changed files with 2 additions and 3 deletions

View File

@ -171,7 +171,7 @@ proc match(bindings: var Bindings; p: Pattern; v: Value): bool =
of PatternKind.Patom:
result = case p.patom
of PAtom.Boolean: v.isBoolean
of PAtom.Double: v.isDouble
of PAtom.Double: v.isFloat
of PAtom.Signedinteger: v.isInteger
of PAtom.String: v.isString
of PAtom.Bytestring: v.isByteString
@ -278,8 +278,7 @@ proc runRewrites*(a: Attenuation; v: Value): Value =
proc publish(turn: var Turn; r: Cap; v: Value; h: Handle) =
var a = runRewrites(r.attenuation, v)
if not a.isFalse:
let e = OutboundAssertion(
handle: h, peer: r, established: false)
let e = OutboundAssertion(handle: h, peer: r)
turn.facet.outbound[h] = e
enqueue(turn, r.relay) do (turn: var Turn):
e.established = true