fix off by 1 error in Doc updater client helper file

This commit is contained in:
Henry Oswald 2021-02-09 10:50:37 +00:00
parent bcfc7e66fc
commit 0cdeffae6c

View file

@ -28,7 +28,7 @@ module.exports = DocUpdaterClient = {
}, },
_getPendingUpdateListKey() { _getPendingUpdateListKey() {
const shard = _.random(0, Settings.dispatcherCount) const shard = _.random(0, Settings.dispatcherCount - 1)
if (shard === 0) { if (shard === 0) {
return 'pending-updates-list' return 'pending-updates-list'
} else { } else {