Skip to content

Commit

Permalink
Add some debug logging around the publish requests logic
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen committed Nov 5, 2024
1 parent fcc89d8 commit 59f6b8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/client/session/services/subscriptions/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ impl SubscriptionEventLoop {
if futures.len() < slf.max_inflight_publish {
debug!("Sending publish due to internal tick");
futures.push(slf.static_publish());
} else {
debug!("Skipping publish due to too many inflight requests");
}
next = slf.session.next_publish_time(true);
}
Expand All @@ -129,6 +131,8 @@ impl SubscriptionEventLoop {
session_debug!(slf.session, "Publish request timed out, sending another");
if futures.len() < slf.max_inflight_publish {
futures.push(slf.static_publish());
} else {
session_debug!(slf.session, "Too many inflight publish requests, skipping");
}
}
StatusCode::BadTooManyPublishRequests => {
Expand Down

0 comments on commit 59f6b8c

Please sign in to comment.