- (define hive (make-hive))
- (define irc-bot
- (bootstrap-actor* hive <my-irc-bot> "irc-bot"
- #:username username
- #:server server
- #:channels channels))
- (define repl-manager
- (cond
- ((string? repl)
- (bootstrap-actor* hive <repl-manager> "repl"
- #:path repl))
- (repl
- (bootstrap-actor* hive <repl-manager> "repl"))))
+ (run-hive
+ (lambda (hive)
+ (define irc-bot
+ (bootstrap-actor* hive <my-irc-bot> "irc-bot"
+ #:username username
+ #:server server
+ #:channels channels))
+ (define repl-manager
+ (cond
+ ((string? repl)
+ (bootstrap-actor* hive <repl-manager> "repl"
+ #:path repl))
+ (repl
+ (bootstrap-actor* hive <repl-manager> "repl"))))