aboutsummaryrefslogtreecommitdiff
path: root/src/com/github/ivarref/yoltq.clj
diff options
context:
space:
mode:
authorIvar Refsdal <ivar.refsdal@nsd.no>2021-09-14 19:16:26 +0200
committerIvar Refsdal <ivar.refsdal@nsd.no>2021-09-14 19:16:26 +0200
commitf2b96daef274415c8e3ba74ce492ef9c9d183711 (patch)
tree659ebefbaf93c42571ed7fb370bd8a3b13131ee3 /src/com/github/ivarref/yoltq.clj
parentAdd Clojars ref (diff)
downloadfiinha-f2b96daef274415c8e3ba74ce492ef9c9d183711.tar.gz
fiinha-f2b96daef274415c8e3ba74ce492ef9c9d183711.tar.xz
Add ability to measure time spent on transacting vs. total time spent. Using transactor with a real postgres database, one CPU and an no-op identity queue consumer, transacting accounts for about 99.5% of the total time used.
Diffstat (limited to 'src/com/github/ivarref/yoltq.clj')
-rw-r--r--src/com/github/ivarref/yoltq.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/github/ivarref/yoltq.clj b/src/com/github/ivarref/yoltq.clj
index 565c01d..2eb39e8 100644
--- a/src/com/github/ivarref/yoltq.clj
+++ b/src/com/github/ivarref/yoltq.clj
@@ -91,11 +91,11 @@
(swap! *config* (fn [old-config] (assoc-in old-config [:handlers queue-id] (merge opts {:f f}))))))
-(defn put [id payload]
+(defn put [queue-id payload]
(let [{:keys [bootstrap-poller! conn] :as cfg} @*config*]
(when (and *test-mode* bootstrap-poller!)
(bootstrap-poller! conn))
- (i/put cfg id payload)))
+ (i/put cfg queue-id payload)))
(defn- do-start! []