Closed isadon closed 8 years ago
No need for the producer to register the topic (or any channel), it can just publish to the topic, and the topic will be created automatically.
Hi @ploxiln I know the producer doesn't need to create it but I filed a separate issue because the REGISTER command is failing as seen above. In my case I don't want to have to submit a post request or browse to the nsqadmin website to pre-create topics. So I'm attempting to create them via REGISTER above.
The REGISTER
command is part of nsqlookupd
's protocol, not nsqd
and shouldn't ever need to triggered manually.
Same as the other issue I filed :) would be nice to have some documentation detailing this info above the appropriate function call or should not be exported. Thanks.
I set up the following setupNSQ function to connect to nsq and register a queue topic and channel:
After calling the function I get the following error on the nsqd instance:
This seems to be an issue with the go-nsq Command Register Function.