lib/invoker/dns_cache.rb in invoker-1.4.1 vs lib/invoker/dns_cache.rb in invoker-1.5.1

- old
+ new

@@ -14,10 +14,10 @@ def [](process_name) @dns_mutex.synchronize { dns_data[process_name] } end - def add(name, port) - @dns_mutex.synchronize { dns_data[name] = { 'port' => port } } + def add(name, port, ip = nil) + @dns_mutex.synchronize { dns_data[name] = { 'port' => port, 'ip' => ip } } end end end