Skip to content

Commit

Permalink
Fix Feeder poll
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Dec 10, 2011
1 parent 9bd8628 commit 407c5b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rapns/daemon/feeder.rb
Expand Up @@ -36,7 +36,7 @@ def self.enqueue_notifications
Rapns::Daemon.logger.error(e)
end

sleep Rapns::Daemon.configuration.poll
sleep Rapns::Daemon.configuration.push.poll
end

def self.reconnect
Expand Down
2 changes: 1 addition & 1 deletion spec/rapns/daemon/feeder_spec.rb
Expand Up @@ -8,7 +8,7 @@
Rapns::Daemon.stub(:logger).and_return(@logger)
@queue = mock(:push => nil, :notifications_processed? => true)
Rapns::Daemon.stub(:delivery_queue).and_return(@queue)
Rapns::Daemon.stub(:configuration => mock("Configuration", :poll => 2))
Rapns::Daemon.stub(:configuration => mock("Configuration", :push => stub(:poll => 2)))
end

it "should reconnect to the database when daemonized" do
Expand Down

0 comments on commit 407c5b6

Please sign in to comment.