-
Notifications
You must be signed in to change notification settings - Fork 441
Closed
Labels
Description
Hi,
It's a bit unclear to me why NewProducer needs a nsqd address, while the consumer has a ConnectToNSQLookupd. Why nsqlookupd doesn't return the list of available nsqd nodes, and the producer use that, like the consumer?
We have to keep a list of nodes for the producer, it's completely redundant with nsqlookupd.
(btw: https://godoc.org/github.com/nsqio/go-nsq#NewProducer is unclear about what is addr, the explanation is elsewhere https://godoc.org/github.com/nsqio/go-nsq#Producer).
Thanks