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:
|
of PatternKind.Patom:
|
||||||
result = case p.patom
|
result = case p.patom
|
||||||
of PAtom.Boolean: v.isBoolean
|
of PAtom.Boolean: v.isBoolean
|
||||||
of PAtom.Double: v.isDouble
|
of PAtom.Double: v.isFloat
|
||||||
of PAtom.Signedinteger: v.isInteger
|
of PAtom.Signedinteger: v.isInteger
|
||||||
of PAtom.String: v.isString
|
of PAtom.String: v.isString
|
||||||
of PAtom.Bytestring: v.isByteString
|
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) =
|
proc publish(turn: var Turn; r: Cap; v: Value; h: Handle) =
|
||||||
var a = runRewrites(r.attenuation, v)
|
var a = runRewrites(r.attenuation, v)
|
||||||
if not a.isFalse:
|
if not a.isFalse:
|
||||||
let e = OutboundAssertion(
|
let e = OutboundAssertion(handle: h, peer: r)
|
||||||
handle: h, peer: r, established: false)
|
|
||||||
turn.facet.outbound[h] = e
|
turn.facet.outbound[h] = e
|
||||||
enqueue(turn, r.relay) do (turn: var Turn):
|
enqueue(turn, r.relay) do (turn: var Turn):
|
||||||
e.established = true
|
e.established = true
|
||||||
|
|
Loading…
Reference in New Issue