Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
byronwasti committed Dec 24, 2024
1 parent 0d17923 commit 237ebeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions balter/src/sampler/outlier_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//! - Boris Iglewicz and David Hoaglin (1993), "Volume 16: How to Detect and Handle Outliers",
//! The ASQC Basic References in Quality Control: Statistical Techniques, Edward F. Mykytka,
//! Ph.D., Editor.
//!
//! Shamelessly stolen from https://github.com/sharkdp/hyperfine/tree/master
//!
//! License:
Expand Down
8 changes: 4 additions & 4 deletions mock-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub async fn run(addr: SocketAddr) {
axum::serve(listener, app).await.unwrap();
}

/** New Handler **/
/* New Handler */

#[derive(Debug, Serialize, Deserialize)]
pub struct Config {
Expand Down Expand Up @@ -206,7 +206,7 @@ async fn tps_updater_task() {
}
}

/** Old Handlers **/
/* Old Handlers */

#[debug_handler]
pub async fn delay(Path(delay_ms): Path<u64>) {
Expand Down Expand Up @@ -278,13 +278,13 @@ pub async fn limited(
Ok(())
}

/** Utils **/
/* Utils */

pub fn rate_limiter(tps: u32) -> DefaultDirectRateLimiter {
RateLimiter::direct(Quota::per_second(NonZeroU32::new(tps).unwrap()))
}

/** TPS Printer **/
/* TPS Printer */

static TPS_MEASURE: AtomicU64 = AtomicU64::new(0);

Expand Down

0 comments on commit 237ebeb

Please sign in to comment.