From: Christopher Allan Webber Date: Sat, 7 May 2016 17:23:53 +0000 (-0500) Subject: actors: Fix hive-actor-local? to check the hive id, not whether actor exists. X-Git-Tag: v0.2.0~2 X-Git-Url: https://jxself.org/git/?p=8sync.git;a=commitdiff_plain;h=6a8c2b1b31fcda7c58bc0a09b627916ae3641d6c actors: Fix hive-actor-local? to check the hive id, not whether actor exists. * 8sync/systems/actors.scm (hive-actor-local?): Update to check the hive id. --- diff --git a/8sync/systems/actors.scm b/8sync/systems/actors.scm index 8545e73..9ba3818 100644 --- a/8sync/systems/actors.scm +++ b/8sync/systems/actors.scm @@ -642,7 +642,7 @@ more compact following syntax: (process-remote-message)))) (define-method (hive-actor-local? (hive ) address) - (hash-ref (hive-actor-registry hive) address)) + (equal? (hive-id hive) (address-hive-id address))) (define-method (hive-register-actor! (hive ) (actor )) (hash-set! (hive-actor-registry hive) (actor-id actor) actor))