Skip to content

Commit

Permalink
Give up on spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
Geobert Quach committed Dec 23, 2020
1 parent b7b0d69 commit 9889a01
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/discord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,8 @@ impl EventHandler for Handler {
let id = msg.id.clone();
let channel_id = msg.channel_id.clone();
let ctx_clone = ctx.clone();
// Spawn, can be long if many messages
tokio::spawn(
async move { strikethrough_previous_reply(ctx_clone, id, channel_id).await },
);
framework.dispatch(ctx, msg).await;
strikethrough_previous_reply(ctx_clone, id, channel_id).await;
}
}
}
Expand Down

0 comments on commit 9889a01

Please sign in to comment.