Skip to content

Commit

Permalink
Merge pull request #9 from weiss/default-ratelimit-settings
Browse files Browse the repository at this point in the history
Fall back to default values for ratelimit settings
  • Loading branch information
tmolitor-stud-tu authored Sep 2, 2023
2 parents 0c47d22 + d99ef12 commit 7d5f338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fpush-ratelimit/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use serde::Deserialize;
use std::time::Duration;

#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
#[serde(rename_all = "camelCase", default)]
pub struct RatelimitSettings {
#[serde(deserialize_with = "serde_humantime")]
pub hard_ratelimit_time: Duration,
Expand Down

0 comments on commit 7d5f338

Please sign in to comment.