Skip to content

Commit

Permalink
tests: fetch - replace deprecated milliseconds with `millisecon…
Browse files Browse the repository at this point in the history
…ds_per_request`
  • Loading branch information
jqnatividad committed Sep 19, 2024
1 parent 70829c0 commit 4a0865f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ async fn run_webserver(tx: mpsc::Sender<ServerHandle>) -> std::io::Result<()> {
// Allow bursts with up to five requests per IP address
// and replenishes one element every 250 ms (4 qps)
let governor_conf = GovernorConfigBuilder::default()
.per_millisecond(250)
.milliseconds_per_request(250)
.burst_size(7)
.finish()
.unwrap();
Expand Down

0 comments on commit 4a0865f

Please sign in to comment.