lib/statsd/instrument/batched_sink.rb in statsd-instrument-3.9.6 vs lib/statsd/instrument/batched_sink.rb in statsd-instrument-3.9.7

- old
+ new

@@ -16,16 +16,11 @@ DEFAULT_MAX_PACKET_SIZE = 1472 DEFAULT_STATISTICS_INTERVAL = 0 # in seconds, and 0 implies disabled-by-default. class << self def for_addr(addr, **kwargs) - if addr.include?(":") - sink = StatsD::Instrument::Sink.for_addr(addr) - new(sink, **kwargs) - else - connection = UdsConnection.new(addr) - new(connection, **kwargs) - end + sink = StatsD::Instrument::Sink.for_addr(addr) + new(sink, **kwargs) end def finalize(dispatcher) proc { dispatcher.shutdown } end