aboutsummaryrefslogtreecommitdiff
path: root/src/com/github/ivarref/yoltq.clj
diff options
context:
space:
mode:
authorIvar Refsdal <refsdal.ivar@gmail.com>2022-03-27 22:41:49 +0200
committerIvar Refsdal <refsdal.ivar@gmail.com>2022-03-27 22:41:49 +0200
commitce96806e63ead7c926a348842a3b466eba01190c (patch)
treebaad5a96c8a8088137decd93691cfed0e81c09a1 /src/com/github/ivarref/yoltq.clj
parentRelease 0.2.46 (diff)
downloadfiinha-ce96806e63ead7c926a348842a3b466eba01190c.tar.gz
fiinha-ce96806e63ead7c926a348842a3b466eba01190c.tar.xz
Auto migration should run in the background and not interfere with polling
Diffstat (limited to 'src/com/github/ivarref/yoltq.clj')
-rw-r--r--src/com/github/ivarref/yoltq.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/github/ivarref/yoltq.clj b/src/com/github/ivarref/yoltq.clj
index 1a60a45..4b324c4 100644
--- a/src/com/github/ivarref/yoltq.clj
+++ b/src/com/github/ivarref/yoltq.clj
@@ -111,7 +111,7 @@
(defn- do-start! []
(let [{:keys [poll-delay pool-size system-error-poll-delay auto-migrate?] :as cfg} @*config*]
(when auto-migrate?
- (migrate/migrate! cfg))
+ (future (migrate/migrate! cfg)))
(reset! threadpool (Executors/newScheduledThreadPool (+ 2 pool-size)))
(let [pool @threadpool
queue-listener-ready (promise)]