-
Notifications
You must be signed in to change notification settings - Fork 168
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
Rework push consumer heartbeats handling #1048
Conversation
Signed-off-by: Tomasz Pietrek <[email protected]>
Signed-off-by: Tomasz Pietrek <[email protected]>
b23de53
to
3a94703
Compare
Signed-off-by: Tomasz Pietrek <[email protected]>
Signed-off-by: Tomasz Pietrek <[email protected]>
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.
Nit but gonna lgtm
@@ -625,7 +643,7 @@ impl<'a> futures::Stream for Ordered<'a> { | |||
match subscriber.receiver.poll_recv(cx) { | |||
Poll::Ready(maybe_message) => match maybe_message { | |||
Some(message) => { | |||
*self.last_seen.lock().unwrap() = Instant::now(); |
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.
+1 for no locks.
@@ -41,7 +41,6 @@ mod jetstream { | |||
use async_nats::jetstream::stream::{self, DiscardPolicy, StorageType}; | |||
use async_nats::jetstream::AckKind; | |||
use async_nats::ConnectOptions; | |||
use bytes::Bytes; |
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.
Churn.
No description provided.