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
Both zero and None values are falsey so watching forever becomes impossible.
Change the check to if inactive_threshold is None: so None gives auto timeout but explicit 0 and 0.0 are accepted and not overriden.
if inactive_threshold is None:
None
0
0.0
nats-py 2.8.0
nats-server 2.10.17
No response
See code line referenced. https://github.com/nats-io/nats.py/blob/981e5d6f0dfa944c8be9b4ee49ffdbd11786742c/nats/js/kv.py#L441C9-L441C34
The text was updated successfully, but these errors were encountered:
caspervonb
No branches or pull requests
Observed behavior
Both zero and None values are falsey so watching forever becomes impossible.
Expected behavior
Change the check to
if inactive_threshold is None:
soNone
gives auto timeout but explicit0
and0.0
are accepted and not overriden.Server and client version
nats-py 2.8.0
nats-server 2.10.17
Host environment
No response
Steps to reproduce
See code line referenced. https://github.com/nats-io/nats.py/blob/981e5d6f0dfa944c8be9b4ee49ffdbd11786742c/nats/js/kv.py#L441C9-L441C34
The text was updated successfully, but these errors were encountered: