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
As defined in the interface https://github.com/docker/libkv/blob/master/store/store.go#L64-L69 the stopCh won't work as intended.
I see from the tests that it's not used at all and I guess you're not using it anywhere else. https://github.com/docker/libkv/blob/master/testutils/utils.go#L102-L103
This poppedup to me when trying to use a watch in my project.
At least in etcd the stopCh must be a send-only type ch. for the purpose of stopping the watch. Also in libkv it's the intended usage: https://github.com/docker/libkv/blob/master/store/etcd/etcd.go#L227
I can take care of this refactor. Note that may result in breaking API changes.
The text was updated successfully, but these errors were encountered:
The test confused me sorry, declaring the channel as bidirectional solves the issue I was having.
Sorry, something went wrong.
No branches or pull requests
As defined in the interface https://github.com/docker/libkv/blob/master/store/store.go#L64-L69 the stopCh won't work as intended.
I see from the tests that it's not used at all and I guess you're not using it anywhere else.
https://github.com/docker/libkv/blob/master/testutils/utils.go#L102-L103
This poppedup to me when trying to use a watch in my project.
At least in etcd the stopCh must be a send-only type ch. for the purpose of stopping the watch. Also in libkv it's the intended usage: https://github.com/docker/libkv/blob/master/store/etcd/etcd.go#L227
I can take care of this refactor. Note that may result in breaking API changes.
The text was updated successfully, but these errors were encountered: