about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-01-07 19:51:47 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-01-07 19:51:47 +0100
commitfca50e4b50d8b2007fa733c7b732aeab6b2092d7 (patch)
tree446de962f769185e739b9e4b09e2530e2e311437 /streaming
parente2933854ac598c5ee7428a654a72cf4f4bd9afea (diff)
parentbc066d8936e2cfaa2dc275d9a5d4aefc0cbc1d86 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'streaming')
-rw-r--r--streaming/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/streaming/index.js b/streaming/index.js
index ff873cd04..2dbb546c0 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -197,10 +197,12 @@ const startWorker = async (workerId) => {
 
   /**
    * @param {string} channel
+   * @param {function(string): void} callback
    */
-  const unsubscribe = (channel) => {
+  const unsubscribe = (channel, callback) => {
+    log.silly(`Removing listener for ${channel}`);
 
-    redisSubscribeClient.unsubscribe(channel);
+    redisSubscribeClient.unsubscribe(channel, callback);
   };
 
   const FALSE_VALUES = [