(&mut self, cmd: WsCommand)
| 204 | } |
| 205 | |
| 206 | async fn handle_ws_command_auth(&mut self, cmd: WsCommand) -> WsResult { |
| 207 | match cmd { |
| 208 | WsCommand::SubscribeLogs(g) => self.subscribe_logs(g).await, |
| 209 | WsCommand::UnSubscribeLogs(g) => self.unsubscribe_logs(g).await, |
| 210 | |
| 211 | WsCommand::Authorize(_) => Err(WsCloseReason::AuthWhenAuthorized), |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | async fn subscribe_logs(&mut self, guild_id: Id<GuildMarker>) -> WsResult { |
| 216 | if self |
no test coverage detected