We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connectedFlag =1 when ConnectToNSQLookupd called why "connectedFlag" not set zero when Stop() called?
The text was updated successfully, but these errors were encountered:
... just because it wasn't needed. It is only used in one place, to ensure that handlers are not added after starting connections:
func (r *Consumer) AddConcurrentHandlers(handler Handler, concurrency int) { if atomic.LoadInt32(&r.connectedFlag) == 1 { panic("already connected") }
It is assumed that after Stop() the process will exit, or will create a new Consumer when needed again.
Stop()
Sorry, something went wrong.
It is only used twice....because some Strange reason. I think it should be reset when stop the connection
No branches or pull requests
connectedFlag =1 when ConnectToNSQLookupd called
why "connectedFlag" not set zero when Stop() called?
The text was updated successfully, but these errors were encountered: