From 6a8c2b1b31fcda7c58bc0a09b627916ae3641d6c Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 7 May 2016 12:23:53 -0500 Subject: [PATCH] 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. --- 8sync/systems/actors.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.31.1