lib/syslogstash/logstash_writer.rb in syslogstash-0.2.0 vs lib/syslogstash/logstash_writer.rb in syslogstash-0.3.0
- old
+ new
@@ -9,10 +9,10 @@
#
# Give it a list of servers, and your writer will be ready to go.
# No messages will actually be *delivered*, though, until you call #run.
#
def initialize(servers, backlog)
- @servers, @backlog = servers.map { |s| URI(s) }, @backlog
+ @servers, @backlog = servers.map { |s| URI(s) }, backlog
unless @servers.all? { |url| url.scheme == 'tcp' }
raise ArgumentError,
"Unsupported URL scheme: #{@servers.select { |url| url.scheme != 'tcp' }.join(', ')}"
end