From b42a70d00a264ab7598cb4fb8f59feb07f075826 Mon Sep 17 00:00:00 2001 From: Holly Date: Tue, 28 Jun 2022 00:27:07 +0100 Subject: [PATCH] rename `scoreSubmitUpdateClient` to `subscriptionClient` so it better fits it's generic nature --- server/serverHandler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/serverHandler.js b/server/serverHandler.js index 5d551af..b88b04d 100644 --- a/server/serverHandler.js +++ b/server/serverHandler.js @@ -26,10 +26,10 @@ global.DatabaseHelper = new DatabaseHelperClass(config.database.address, config. async function subscribeToChannel(channelName = "", callback = function(message = "") {}) { // Dup and connect new client for channel subscription (required) - const scoreSubmitUpdateClient = global.promClient.duplicate(); - await scoreSubmitUpdateClient.connect(); + const subscriptionClient = global.promClient.duplicate(); + await subscriptionClient.connect(); // Subscribe to channel - await scoreSubmitUpdateClient.subscribe(channelName, callback); + await subscriptionClient.subscribe(channelName, callback); consoleHelper.printRedis(`Subscribed to ${channelName} channel`); }