Skip to content

Commit 60b1274

Browse files
committed
Updates Dispatcher to address PR feedback
Addresses PR feedback where the previous changes could result in a degredation of services. This commit returns the orignal Dispatcher looping behavior.
1 parent f16e250 commit 60b1274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/solid_queue/dispatcher.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def metadata
2525
def poll
2626
batch = dispatch_next_batch
2727

28-
batch.size < batch_size ? polling_interval : 0.seconds
28+
batch.size.zero? ? polling_interval : 0.seconds
2929
end
3030

3131
def dispatch_next_batch

0 commit comments

Comments
 (0)