(mut self)
| 164 | } |
| 165 | |
| 166 | async fn run(mut self) { |
| 167 | self.setup().await; |
| 168 | |
| 169 | while let Some(next) = self.next_event().await { |
| 170 | if !self.handle_next_action(next).await { |
| 171 | break; |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | self.shutdown().await; |
| 176 | } |
| 177 | |
| 178 | #[instrument(skip(self), fields(guild_id = self.guild_id.get(), action = action.span_info()))] |
| 179 | pub(crate) async fn handle_next_action(&mut self, action: NextGuildAction) -> bool { |
no test coverage detected