Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
0.34.0
Overview
This release introduces performance improvements (thanks to poll_recv_many #1189), improves resilience of
ordered consumers by recreating them in more cases while having less server calls. It also adds some new features.
Breaking Changes
Breaking changes are minor, however, all are worth mentioning.
This change simplifies lifetimes of Boxed Futures, by making them static. It should not affect most users,
and if it does, removal of the lifetime should be a quick fix.
The client was not checking if the message payload size was not exceeding the limits of the server it is connected to.
While doing the fix, the error returned was changed into one consistent with others: a struct with enum of possible
error variants under
kind()
method, of which one isMaxPayloadExceeded
. This should not break users,as before there was no enum in the first place, but it is a breaking change.
It added new enum variant to Consumer and Stream error kinds. Breaking for those who match those errors in exhaustive manner.
This changes to be a
mut self
fromself
while removing unnecessary clone.Fixed
Added
create
function to kv store by @praveenperera in Addcreate
function to kv store #1206into_string
method toSubject
by @thomastaylor312 in feat(subject): Addsinto_string
method toSubject
#1161Changed
Event
s by @paolobarbolini in Always logEvent
s #1123ServerAddr::socket_addrs
by @paolobarbolini in Do asynchronous DNS lookups inServerAddr::socket_addrs
#1191Subject::from_static
a const fn by @paolobarbolini in MakeSubject::from_static
a const fn #1207self
to a borrow inRequest::respond()
by @jlandahl in Changedself
to a borrow inRequest::respond()
#1139No Messages
by @Jarema in Terminate fetch onNo Messages
#1171New Contributors
self
to a borrow inRequest::respond()
#1139create
function to kv store #1206Full Changelog: nats/v0.24.1...async-nats/v0.34.0
Signed-off-by: Tomasz Pietrek tomasz@nats.io