From c1588ef66e844c067112ea880a54b4de9ec5a062 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sat, 25 Feb 2023 17:32:15 -0600 Subject: Fix system order ambiguities (#74) * start fixing stuff where systems run in the wrong order * fix ordering ambiguity * add debugging guide * some fixes * fix panic for swarms * fix some warnings --- azalea/examples/echo.rs | 2 -- azalea/examples/testbot.rs | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'azalea/examples') diff --git a/azalea/examples/echo.rs b/azalea/examples/echo.rs index 46853bf4..292e12cd 100755 --- a/azalea/examples/echo.rs +++ b/azalea/examples/echo.rs @@ -4,8 +4,6 @@ use azalea::prelude::*; #[tokio::main] async fn main() { - env_logger::init(); - let account = Account::offline("bot"); // or let account = Account::microsoft("email").await; diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index af236dc4..053e29b3 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -19,13 +19,10 @@ struct SwarmState {} #[tokio::main] async fn main() -> anyhow::Result<()> { - env_logger::init(); - { use parking_lot::deadlock; use std::thread; use std::time::Duration; - // Create a background thread which checks for deadlocks every 10s thread::spawn(move || loop { thread::sleep(Duration::from_secs(10)); @@ -48,7 +45,7 @@ async fn main() -> anyhow::Result<()> { let mut accounts = Vec::new(); let mut states = Vec::new(); - for i in 0..1 { + for i in 0..5 { accounts.push(Account::offline(&format!("bot{i}"))); states.push(State::default()); } -- cgit v1.2.3