Skip to content

Commit

Permalink
Begin UnclassifiedEvent::from_log_line and UnclassifiedEvent::from_ex…
Browse files Browse the repository at this point in the history
…tension
  • Loading branch information
QtKaii committed Jan 25, 2024
1 parent 448e402 commit ec46109
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/src/event_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ pub enum UnclassifiedEvent{
ServerRegister
}

impl UnclassifiedEvent{
pub fn from_log_line(raw: &str) -> Self {
todo!("Implement UnclassifiedEvent::from_log_line");
}

pub async fn from_extension(raw: &str) -> Self {
// dummy sleep to make the compiler happy
tokio::time::sleep(tokio::time::Duration::from_secs(0)).await;
todo!("Implement UnclassifiedEvent::from_extension");
}
}

0 comments on commit ec46109

Please sign in to comment.