Skip to content

Commit

Permalink
fixed the deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Sep 24, 2024
1 parent 5baa0f8 commit 2702434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/feedback/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const SECONDS_PER_DAY: u64 = 60 * 60 * 24;
pub fn configure(cfg: &mut web::ServiceConfig) {
let feedback_ratelimit = GovernorConfigBuilder::default()
.key_extractor(GlobalKeyExtractor)
.per_second(SECONDS_PER_DAY / 300) // replenish new token every .. seconds
.seconds_per_request(SECONDS_PER_DAY / 300) // replenish new token every .. seconds
.burst_size(50)
.finish()
.expect("Invalid configuration of the governor");
Expand Down

0 comments on commit 2702434

Please sign in to comment.