Skip to content

Commit

Permalink
Fix method name
Browse files Browse the repository at this point in the history
  • Loading branch information
jondubois committed Jan 15, 2021
1 parent ea86804 commit 5105438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ module.exports.attach = function (broker, options) {
instanceIpFamily: options.instanceIpFamily || 'IPv4'
};

let emitsccWorkerJoinCluster = async () => {
let emitSCCWorkerJoinCluster = async () => {
let data;
try {
data = await stateSocket.invoke('sccWorkerJoinCluster', sccWorkerStateData);
} catch (error) {
stateSocket.emit('error', {error});
setTimeout(emitsccWorkerJoinCluster, retryDelay);
setTimeout(emitSCCWorkerJoinCluster, retryDelay);
return;
}
resetBrokersSnapshotTime();
Expand All @@ -143,7 +143,7 @@ module.exports.attach = function (broker, options) {

(async () => {
for await (let event of stateSocket.listener('connect')) {
emitsccWorkerJoinCluster();
emitSCCWorkerJoinCluster();
}
})();

Expand Down

0 comments on commit 5105438

Please sign in to comment.