Skip to content

Commit

Permalink
If producer has no address, fallback to hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpreston committed May 8, 2014
1 parent 4c02cf6 commit f4868d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _query_lookupd(self, lookupd):

for producer in producers:
self.connect_to_nsqd(
producer['address'],
producer.get('address') or producer['hostname'],
producer['tcp_port'],
producer['http_port']
)
Expand Down

0 comments on commit f4868d0

Please sign in to comment.