From 8b716d49ed019213d91a45f094684f26fac289bd Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Wed, 2 Oct 2024 02:22:34 -0600 Subject: refactor gateway and client together into bot struct --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') 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, 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; }); }); -- cgit 1.4.1