improve code

This commit is contained in:
houseme
2025-04-22 09:14:09 +08:00
parent 6c70c03985
commit 0ed92b3b6f
12 changed files with 257 additions and 36 deletions
@@ -45,6 +45,7 @@ impl ChannelAdapter for WebhookAdapter {
async fn send(&self, event: &Event) -> Result<(), Error> {
let mut attempt = 0;
tracing::info!("Attempting to send webhook request: {:?}", event);
loop {
match self.build_request(event).send().await {
Ok(response) => {