We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d2af7c commit 9a3cbabCopy full SHA for 9a3cbab
src/auth_monitor_options.rs
@@ -1,8 +1,5 @@
1
use std::fmt::{Display, Formatter};
2
3
-const MAX_FAILED_ATTEMPTS: i32 = 3;
4
-const RESET_AFTER_SECONDS: i32 = 1800;
5
-
6
pub struct AuthMonitorOptions {
7
pub max_failed_attempts: i32,
8
pub reset_after_seconds: i32,
@@ -11,8 +8,8 @@ pub struct AuthMonitorOptions {
11
impl Default for AuthMonitorOptions {
12
9
fn default() -> Self {
13
10
return AuthMonitorOptions {
14
- max_failed_attempts: MAX_FAILED_ATTEMPTS,
15
- reset_after_seconds: RESET_AFTER_SECONDS,
+ max_failed_attempts: 3,
+ reset_after_seconds: 1800,
16
};
17
}
18
0 commit comments