You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in the nats implementation. WatchWithContext() uses the watch-channel of nats.KeyValue to watch for events. This channel can return nil in some cases but is it not checked in the go routine. So it panics when watch.Updates() returns nil.
Furthermore I am not sure if it is correct/necessary but the nats connection is closed multiple times in WatchWithContext() and I don't see the purpose of waiting for 5 seconds after an update. Why not get updates asap? Sorry for the two off topic questions but I would appreciate some clarification.
The text was updated successfully, but these errors were encountered:
There is a bug in the nats implementation. WatchWithContext() uses the watch-channel of
nats.KeyValue
to watch for events. This channel can returnnil
in some cases but is it not checked in the go routine. So it panics whenwatch.Updates()
returnsnil
.Furthermore I am not sure if it is correct/necessary but the nats connection is closed multiple times in
WatchWithContext()
and I don't see the purpose of waiting for 5 seconds after an update. Why not get updates asap? Sorry for the two off topic questions but I would appreciate some clarification.The text was updated successfully, but these errors were encountered: