actors: Remove unnecessary let in hive-process-message.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 27 Apr 2016 19:21:59 +0000 (14:21 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 27 Apr 2016 19:21:59 +0000 (14:21 -0500)
* 8sync/systems/actors.scm (hive-process-message): Removed unnecessary let.

8sync/systems/actors.scm

index fb170bc45a1af34c86d557240da60cb7d22925af..e33a88b3658eb514da2dd21b04d85e1f6305f322 100644 (file)
@@ -484,13 +484,12 @@ more compact following syntax:
     (call-with-prompt (hive-prompt hive)
       thunk
       (lambda (kont actor message)
-        (let ((hive (actor-hive actor)))
-          ;; Register the coroutine
-          (hash-set! (hive-waiting-coroutines hive)
-                     (message-id message)
-                     (cons (actor-id actor) kont))
-          ;; Send off the message
-          (8sync (hive-process-message hive message))))))
+        ;; Register the coroutine
+        (hash-set! (hive-waiting-coroutines hive)
+                   (message-id message)
+                   (cons (actor-id actor) kont))
+        ;; Send off the message
+        (8sync (hive-process-message hive message)))))
 
   (define (process-local-message)
     (let ((actor (resolve-actor-to)))