Permalink
Browse files

failures is only zero after successful auth.

  • Loading branch information...
1 parent 22a5043 commit b1d31d9144bdbdbe661889c0ec93f1dabbb5f330 @jqr jqr committed Feb 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/instrumental/agent.rb
@@ -299,10 +299,10 @@ def run_worker_loop
command_options = nil
logger.info "connecting to collector"
@socket = with_timeout(CONNECT_TIMEOUT) { TCPSocket.new(host, port) }
- @failures = 0
logger.info "connected to collector at #{host}:#{port}"
send_with_reply_timeout "hello version #{Instrumental::VERSION} test_mode #{@test_mode}"
send_with_reply_timeout "authenticate #{@api_key}"
+ @failures = 0
loop do
command_and_args, command_options = @queue.pop
sync_resource = command_options && command_options[:sync_resource]

0 comments on commit b1d31d9

Please sign in to comment.