X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=8sync%2Fsystems%2Factors.scm;h=9ba3818b6ff1d6f6e34b0ff33ae65ad8f29ca619;hp=0659eb52c95f45b5323dcf9e44e887a3a02ebc0a;hb=6a8c2b1b31fcda7c58bc0a09b627916ae3641d6c;hpb=efe3df614b1808a686a91d07dfc46690b94ad126 diff --git a/8sync/systems/actors.scm b/8sync/systems/actors.scm index 0659eb5..9ba3818 100644 --- a/8sync/systems/actors.scm +++ b/8sync/systems/actors.scm @@ -538,7 +538,8 @@ more compact following syntax: (define (call-catching-coroutine thunk) (define (call-catching-errors) - ;; TODO: maybe parameterize and use maybe-catch-all from agenda.scm + ;; TODO: maybe parameterize (or attach to hive) and use + ;; maybe-catch-all from agenda.scm ;; @@: Why not just use with-throw-handler and let the catch ;; happen at the agenda? That's what we used to do, but ;; it ended up with a SIGABRT. See: @@ -641,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))