Skip to content

Commit

Permalink
Add a missing await in acquireLeases
Browse files Browse the repository at this point in the history
  • Loading branch information
SupernaviX committed Jul 9, 2019
1 parent 4de1f51 commit 62e21f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lease-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class LeaseManager {
const changesDetected = (await Object.keys(shards).reduce(async (result, id) => {
return (await result).concat(await acquireLease(this, id, shards));
}, [])).some(Boolean);
if (changesDetected) consumersManager.reconcile();
if (changesDetected) await consumersManager.reconcile();

privateProps.timeoutId = setTimeout(acquireLeases, ACQUIRE_LEASES_INTERVAL);
};
Expand Down

0 comments on commit 62e21f6

Please sign in to comment.