aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorire <refsdal.ivar@gmail.com>2025-05-21 13:48:10 +0200
committerire <refsdal.ivar@gmail.com>2025-05-21 13:48:10 +0200
commit4a3a9a5da6e7a8771eb3adb79172aca5ce8f26a6 (patch)
tree8838d1682d0c447cd6dcea7833107789f7ae25b3 /src
parentDoc. Return true/false if queues were stopped or not #7 (diff)
downloadfiinha-4a3a9a5da6e7a8771eb3adb79172aca5ce8f26a6.tar.gz
fiinha-4a3a9a5da6e7a8771eb3adb79172aca5ce8f26a6.tar.xz
Misc #7
Diffstat (limited to 'src')
-rw-r--r--src/com/github/ivarref/yoltq.clj4
-rw-r--r--src/com/github/ivarref/yoltq/report_queue.clj2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com/github/ivarref/yoltq.clj b/src/com/github/ivarref/yoltq.clj
index 298b9d5..45f2051 100644
--- a/src/com/github/ivarref/yoltq.clj
+++ b/src/com/github/ivarref/yoltq.clj
@@ -402,7 +402,7 @@
(assert (boolean? send-end-token?))
(rq/get-tx-report-queue-multicast! conn id send-end-token?)))
-(defn stop-multicaster-id!
+(defn stop-multicast-consumer-id!
"Stop forwarding reports from datomic.api/tx-report-queue to the queue identified by `conn` and `id`.
If this is the last report destination for the given `conn`, the multicaster thread will exit.
Repeated calls are no-op.
@@ -414,7 +414,7 @@
Return `false` if the queue does not exist."
[conn id]
(assert (instance? Connection conn))
- (rq/stop-multicaster-id! conn id))
+ (rq/stop-multicast-consumer-id! conn id))
(defn stop-multicaster!
"Stop forwarding reports from datomic.api/tx-report-queue to any queues belonging to `conn`.
diff --git a/src/com/github/ivarref/yoltq/report_queue.clj b/src/com/github/ivarref/yoltq/report_queue.clj
index c3fd383..b3685b9 100644
--- a/src/com/github/ivarref/yoltq/report_queue.clj
+++ b/src/com/github/ivarref/yoltq/report_queue.clj
@@ -334,7 +334,7 @@
(not= (all-queues old)
(all-queues new)))
-(defn stop-multicaster-id! [conn id]
+(defn stop-multicast-consumer-id! [conn id]
(assert (instance? Connection conn))
(let [did-remove? (atom nil)]
(locking consumer-state-lock