Cleanup actors
This commit is contained in:
parent
d365a1e6e5
commit
1ce96560f4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue