diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-02-25 17:32:15 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-25 17:32:15 -0600 |
| commit | c1588ef66e844c067112ea880a54b4de9ec5a062 (patch) | |
| tree | 76e4f73a5f5392e1bef1f0560ed2f2c56b0d50fb /azalea/examples/testbot.rs | |
| parent | f5a8a59467a0aac3ae2f728961559217f1e1242d (diff) | |
| download | azalea-drasl-c1588ef66e844c067112ea880a54b4de9ec5a062.tar.xz | |
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
Diffstat (limited to 'azalea/examples/testbot.rs')
| -rw-r--r-- | azalea/examples/testbot.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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()); } |
