-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
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
Multiplex requests over a single subscription #1069
Conversation
11ac516
to
a662f06
Compare
So we might have to take out inbox on request builder. Or keep legacy requests in for just that scenario. |
Some benches against main
|
c5a18c3
to
2be8253
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the TODO :)
4518292
to
618cf14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
One change request.
async-nats/src/lib.rs
Outdated
@@ -484,6 +501,26 @@ impl ConnectionHandler { | |||
self.handle_flush().await?; | |||
} | |||
} | |||
} else if let Some(multiplexer) = self.multiplexer.as_mut() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would check if sid is as we expect, just to avoid any edge cases.
f2e247c
to
a0b7a58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.