Skip to content

Commit 8d2af7c

Browse files
committed
Rename message_parser to auth_message_parser
1 parent 3e87a64 commit 8d2af7c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ pub fn is_auth_failed_message(message: &str) -> bool {
1212
}
1313

1414
#[cfg(test)]
15-
#[path = "./message_parser.test.rs"]
15+
#[path = "./auth_message_parser.test.rs"]
1616
mod test;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::message_parser::is_auth_failed_message;
1+
use crate::auth_message_parser::is_auth_failed_message;
22

33
#[test]
44
fn when_message_is_auth_failed_message_then_returns_true() {

src/auth_monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ use std::error::Error;
22
use std::time::{Duration, SystemTime};
33

44
use crate::auth_file_watcher::AuthFileWatcher;
5+
use crate::auth_message_parser::is_auth_failed_message;
56
use crate::auth_monitor_options::AuthMonitorOptions;
67
use crate::auth_monitor_params::AuthMonitorParams;
7-
use crate::message_parser::is_auth_failed_message;
88

99
pub struct AuthMonitor {
1010
failed_attempts: i32,

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ use crate::auth_monitor_params::AuthMonitorParams;
1313

1414
mod auth_file_reader;
1515
mod auth_file_watcher;
16+
mod auth_message_parser;
1617
mod auth_monitor;
1718
mod auth_monitor_options;
1819
mod auth_monitor_params;
1920
mod file_event_filter;
2021
mod file_path;
21-
mod message_parser;
2222

2323
const SLEEP_DURATION: Duration = Duration::from_millis(500);
2424

0 commit comments

Comments
 (0)