equal
deleted
inserted
replaced
55 ) { |
55 ) { |
56 Ok(account) => IoResult::Account(account), |
56 Ok(account) => IoResult::Account(account), |
57 Err(e) => { |
57 Err(e) => { |
58 warn!("Unable to get account data: {}", e); |
58 warn!("Unable to get account data: {}", e); |
59 IoResult::Account(None) |
59 IoResult::Account(None) |
|
60 } |
|
61 } |
|
62 } |
|
63 |
|
64 IoTask::GetCheckerAccount { nick, password } => { |
|
65 match db.get_checker_account(&nick, &password) { |
|
66 Ok(is_registered) => IoResult::CheckerAccount { is_registered }, |
|
67 Err(e) => { |
|
68 warn!("Unable to get checker account data: {}", e); |
|
69 IoResult::CheckerAccount { |
|
70 is_registered: false, |
|
71 } |
60 } |
72 } |
61 } |
73 } |
62 } |
74 } |
63 |
75 |
64 IoTask::GetReplay { id } => { |
76 IoTask::GetReplay { id } => { |