From ff1e28f88e93ba83cf76569b5613445b841efd45 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Thu, 11 Dec 2025 21:00:37 -0600 Subject: Run handler function in a Tokio LocalSet (#295) * Run handler function in a Tokio LocalSet * remove tokio flavor=current_thread from examples * update changelog --- azalea/examples/todo/craft_dig_straight_down.rs | 2 +- azalea/examples/todo/mine_a_chunk.rs | 2 +- azalea/examples/todo/pvp.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea/examples/todo') diff --git a/azalea/examples/todo/craft_dig_straight_down.rs b/azalea/examples/todo/craft_dig_straight_down.rs index bf312331..951c3de2 100644 --- a/azalea/examples/todo/craft_dig_straight_down.rs +++ b/azalea/examples/todo/craft_dig_straight_down.rs @@ -8,7 +8,7 @@ struct State { pub started: Arc>, } -#[tokio::main(flavor = "current_thread")] +#[tokio::main] async fn main() { let account = Account::offline("bot"); // or let bot = Account::microsoft("email").await; diff --git a/azalea/examples/todo/mine_a_chunk.rs b/azalea/examples/todo/mine_a_chunk.rs index eb7fafd4..0c439f26 100644 --- a/azalea/examples/todo/mine_a_chunk.rs +++ b/azalea/examples/todo/mine_a_chunk.rs @@ -1,6 +1,6 @@ use azalea::{prelude::*, swarm::prelude::*}; -#[tokio::main(flavor = "current_thread")] +#[tokio::main] async fn main() { let mut accounts = Vec::new(); let mut states = Vec::new(); diff --git a/azalea/examples/todo/pvp.rs b/azalea/examples/todo/pvp.rs index 0639d86b..d85278e8 100644 --- a/azalea/examples/todo/pvp.rs +++ b/azalea/examples/todo/pvp.rs @@ -5,7 +5,7 @@ use azalea::{ pathfinder, prelude::*, swarm::prelude::*, }; -#[tokio::main(flavor = "current_thread")] +#[tokio::main] async fn main() { let mut accounts = Vec::new(); let mut states = Vec::new(); -- cgit v1.2.3