fetch(n) doesn't retrieve the specified number of messages from nats-py 2.1.2 onwards #441
jwhs-crowe
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm having difficulty with upgrading from nats-py v2.1.0 to v2.2.0. In nats-py v2.1.2, there was a change to make sub.Fetch not block until all messages arrive.
For instance, when I run
subcribe.fetch(10)
with nats-py v.2.1.2-2.2.0 it'll only return a single message instead of the 10 messages. When ran with nats-py v2.1.0, it returns all 10 messages.I wrote code that is now breaking because of that change, is there a recommend way to have to function as it was before while still upgrading to the newer version?
Beta Was this translation helpful? Give feedback.
All reactions