File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ def getBlockTimeout(self, block_until: int):
170
170
block_timeout = None
171
171
block_delay = block_until - int (time .time () * 1000 )
172
172
if block_delay < self .minimumBlockTimeout * 1000 :
173
- block_timeout = minimum_block_timeout
173
+ return self . minimumBlockTimeout
174
174
else :
175
175
block_timeout = block_delay / 1000
176
176
# We restrict the maximum block timeout to 10 second to avoid
Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ export class Worker<
660
660
const blockDelay = blockUntil - Date . now ( ) ;
661
661
// when we reach the time to get new jobs
662
662
if ( blockDelay < this . minimumBlockTimeout * 1000 ) {
663
- blockTimeout = minimumBlockTimeout ;
663
+ return this . minimumBlockTimeout ;
664
664
} else {
665
665
blockTimeout = blockDelay / 1000 ;
666
666
}
You can’t perform that action at this time.
0 commit comments