mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix off by 1 error in Doc updater client helper file
This commit is contained in:
parent
bcfc7e66fc
commit
0cdeffae6c
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module.exports = DocUpdaterClient = {
|
|||
},
|
||||
|
||||
_getPendingUpdateListKey() {
|
||||
const shard = _.random(0, Settings.dispatcherCount)
|
||||
const shard = _.random(0, Settings.dispatcherCount - 1)
|
||||
if (shard === 0) {
|
||||
return 'pending-updates-list'
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue