Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
fix(action): typo submit_ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahum committed Apr 8, 2023
1 parent 769e8e6 commit 6e40fd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/model/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ pub struct Login {
}

#[derive(Debug, TryFromAction, TryFromValue)]
pub struct SubmitLogin {
pub struct SubmitTicket {
pub bot_id: String,
pub ticket: String,
}

#[derive(Debug, TryFromAction, TryFromValue)]
pub struct Token {
pub super_token: String,
pub bot_id: String
pub bot_id: String,
}

#[derive(Debug, Clone, TryFromAction)]
Expand Down Expand Up @@ -155,11 +155,11 @@ pub enum WQAction {
#[derive(Debug, TryFromAction)]
pub enum WQMetaAction {
Login(Login),
SubmitLogin(SubmitLogin),
SubmitTicket(SubmitTicket),
Shutdown(Token),
Logout(Token),
}

pub(crate) fn is_wq_meta(action: &str) -> bool {
["login", "submit_login", "shutdown", "logout"].contains(&action)
["login", "submit_ticket", "shutdown", "logout"].contains(&action)
}
2 changes: 1 addition & 1 deletion src/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl ActionHandler<Event, Action, Resp> for MultiAH {
Err(e) => Ok(rqe2resp(e)),
}
}
Ok(WQMetaAction::SubmitLogin(ticket)) => {
Ok(WQMetaAction::SubmitTicket(ticket)) => {
if let Some((_, (handler, rx, net))) =
self.unadded_client.remove(&ticket.bot_id)
{
Expand Down

0 comments on commit 6e40fd8

Please sign in to comment.