Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-01-07 19:51:47 +01:00
7 changed files with 682 additions and 695 deletions

View File

@ -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 = [