diff options
author | Ashelyn Rose <git@ashen.earth> | 2024-10-02 02:22:34 -0600 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2024-10-02 02:22:34 -0600 |
commit | 8b716d49ed019213d91a45f094684f26fac289bd (patch) | |
tree | 0cd03b7719fc535c310aab4d50f61287e797301f /src/main.rs | |
parent | a6a120ae8b8ed08b0801d76e80a5f7a0b8cde44b (diff) |
refactor gateway and client together into bot struct
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index b5232ff..12e2f3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ mod config; mod system; +use system::Manager; use std::{fs, panic}; use tokio::{runtime, task::JoinSet}; @@ -50,7 +51,7 @@ fn spawn_system(joinset: &mut JoinSet<String>, pool: &tokio::runtime::Runtime, s let _ = panic::catch_unwind(|| { thread_local_runtime.block_on(async { - let mut system = system::Manager::new(name.clone(), config); + let mut system = Manager::new(name.clone(), config); system.start_clients().await; }); }); |