Fix hashing of Actor and Facet

This commit is contained in:
Emery Hemingway 2024-03-20 13:04:14 +00:00
parent 4fe2173d81
commit 289754499c
1 changed files with 2 additions and 2 deletions

View File

@ -177,10 +177,10 @@ proc attenuate*(r: Cap; a: Attenuation): Cap =
attenuation: a & r.attenuation)
proc hash*(actor): Hash =
actor.unsafeAddr.hash
result = actor[].unsafeAddr.hash
proc hash*(facet): Hash =
facet.unsafeAddr.hash
facet[].unsafeAddr.hash
proc hash*(r: Cap): Hash = !$(r.relay.hash !& r.target.unsafeAddr.hash)