Skip to content

Commit

Permalink
remove multi threading for tokio
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian van Dijk committed Dec 5, 2024
1 parent 287e5bf commit d7865e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,4 @@ jobs:
name: format check
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
name: clippy check
with:
command: clippy
args: -- -D warnings
args: --all -- --check
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
tokio = { version = "1.25.1", default-features = false, features = ["rt","rt-multi-thread", "macros"] } # for async in general
tokio = { version = "1.25.1", default-features = false, features = ["rt", "macros"] } # for async in general
futures-util = { version = "0.3.13", default-features = false } # for async in general
poise_macros = "0.6.1" # remember to update the version on changes!
async-trait = { version = "0.1.48", default-features = false } # various traits
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async fn leaderboard_today(ctx: Context<'_>) -> Result<(), Error> {
Ok(())
}

#[tokio::main]
#[tokio::main(flavor = "current_thread")]
async fn main() {
let token = std::env::var("DISCORD_TOKEN").expect("missing DISCORD_TOKEN environment variable");
let intents = serenity::GatewayIntents::non_privileged();
Expand Down

0 comments on commit d7865e5

Please sign in to comment.