This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Accept require argument for loading worker namespace.

  • Loading branch information...
technomancy committed May 18, 2012
1 parent ed96e82 commit 8bb54f1af0563fa44a4973fc4e5646b7d934cd3a
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/die/roboter.clj
View
@@ -196,4 +196,6 @@
:url (System/getenv "RABBITMQ_URL")}
(walk/keywordize-keys opts))]
(println "Starting" (:workers opts) "workers.")
+ (when (:require opts)
+ (require (symbol (:require opts))))
(dotimes [n (Integer. (:workers opts))] (add-worker opts))))

0 comments on commit 8bb54f1

Please sign in to comment.