I just learnt nsq yesterday. I have a problem when I use the function NewProducer(addr, config): Which address should I use, the nsqdlookupd one or the nsqd one?
// NewProducer returns an instance of Producer for the specified address
// ...
func NewProducer(addr string, config *Config) (*Producer, error) {
I just learnt nsq yesterday. I have a problem when I use the function
NewProducer(addr, config)
: Which address should I use, thensqdlookupd
one or thensqd
one?