Skip to content

Commit

Permalink
feat(subscriber): Minor name change
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamking committed Feb 6, 2024
1 parent a9e133f commit 7de83ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions console-subscriber/src/aggregator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ impl Aggregator {
metadata: (*self.all_metadata).clone(),
}),
};
let el = update.encoded_len();
if el < MAX_MESSAGE_SIZE {
let message_size = update.encoded_len();
if message_size < MAX_MESSAGE_SIZE {
// normal case
break Some(update);
}
Expand All @@ -305,7 +305,7 @@ impl Aggregator {
self.cleanup_closed();
tracing::debug!(
retention = ?self.retention,
message_size = el,
message_size,
max_message_size = MAX_MESSAGE_SIZE,
"Message too big, reduced retention",
);
Expand Down

0 comments on commit 7de83ee

Please sign in to comment.