Skip to content

Commit 9a3cbab

Browse files
committed
Minor refactor in auth_monitor_options
1 parent 8d2af7c commit 9a3cbab

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/auth_monitor_options.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
use std::fmt::{Display, Formatter};
22

3-
const MAX_FAILED_ATTEMPTS: i32 = 3;
4-
const RESET_AFTER_SECONDS: i32 = 1800;
5-
63
pub struct AuthMonitorOptions {
74
pub max_failed_attempts: i32,
85
pub reset_after_seconds: i32,
@@ -11,8 +8,8 @@ pub struct AuthMonitorOptions {
118
impl Default for AuthMonitorOptions {
129
fn default() -> Self {
1310
return AuthMonitorOptions {
14-
max_failed_attempts: MAX_FAILED_ATTEMPTS,
15-
reset_after_seconds: RESET_AFTER_SECONDS,
11+
max_failed_attempts: 3,
12+
reset_after_seconds: 1800,
1613
};
1714
}
1815
}

0 commit comments

Comments
 (0)