Skip to content

Commit

Permalink
find in batches
Browse files Browse the repository at this point in the history
  • Loading branch information
tompesman committed Jun 20, 2012
1 parent 8a84077 commit 34e0148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/push/daemon/feeder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.enqueue_notifications
begin
with_database_reconnect_and_retry(name) do
if Push::Daemon.delivery_queue.notifications_processed?
Push::Message.ready_for_delivery.each do |notification|
Push::Message.ready_for_delivery.find_each do |notification|
Push::Daemon.delivery_queue.push(notification)
end
end
Expand Down

0 comments on commit 34e0148

Please sign in to comment.