Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros committed Aug 1, 2023
1 parent e9941dd commit 532ee79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shotover-proxy/tests/cassandra_int_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ async fn request_throttling(#[case] driver: CassandraDriver) {

tokio::time::sleep(std::time::Duration::from_secs(1)).await; // sleep to reset the window

shotover.shutdown_and_then_consume_events(&[]).await;
shotover.shutdown_and_then_consume_events(&[EventMatcher::new().with_level(Level::Warn).with_target("shotover::transforms::throttling").with_message(r#"A message was received that could never have been successfully delivered since it contains more sub messages than can ever be allowed through via the `RequestThrottling` transforms `max_requests_per_second` configuration."#)]).await;
}

#[cfg(feature = "alpha-transforms")]
Expand Down
4 changes: 2 additions & 2 deletions shotover/src/transforms/throttling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ impl Transform for RequestThrottling {
let message = requests_wrapper.requests.remove(i);
Some((message, i))
}
Err(e) => {
tracing::info!("{e}");
Err(_) => {
tracing::warn!("A message was received that could never have been successfully delivered since it contains more sub messages than can ever be allowed through via the `RequestThrottling` transforms `max_requests_per_second` configuration.");
let message = requests_wrapper.requests.remove(i);
Some((message, i))
}
Expand Down

0 comments on commit 532ee79

Please sign in to comment.