Skip to content

Commit

Permalink
fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Jul 28, 2024
1 parent 6a09b52 commit 1421c26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pingora-load-balancing/src/health_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,10 @@ mod test {
unhealthy_count: unhealthy_count.clone(),
};
let bob = Box::new(ob);
let mut tcp_check = TcpHealthCheck::default();
tcp_check.health_changed_callback = Some(bob);
let tcp_check = TcpHealthCheck {
health_changed_callback: Some(bob),
..Default::default()
};

let discovery = discovery::Static::default();
let mut backends = Backends::new(Box::new(discovery));
Expand Down

0 comments on commit 1421c26

Please sign in to comment.