diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-14 22:58:49 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-09-14 22:58:49 +0800 |
| commit | 3d2874a218b0abe736dffa6d9a6b79c103ca5186 (patch) | |
| tree | c73677067738f4e6c3d810f7cf70a331705b92e0 /src/client/main.rs | |
| parent | 6fc21196b8283c397e7fe46e9a266b33166ca7cb (diff) | |
refactor: move event loop to client
Diffstat (limited to 'src/client/main.rs')
| -rw-r--r-- | src/client/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/main.rs b/src/client/main.rs index 8ba230b..24c8a8b 100644 --- a/src/client/main.rs +++ b/src/client/main.rs @@ -2,7 +2,6 @@ #![feature(associated_type_defaults, never_type, lazy_type_alias)] use crate::client::Client; -use crate::connector::Connection; use crate::connector::httpconnector::HTTPConnector; use signal_hook::consts::signal::*; use signal_hook::iterator::Signals; @@ -39,6 +38,6 @@ fn main() { ]); // discard err let ip = "http://127.0.0.1:8080"; - let mut client = Client::new(HTTPConnector::new(ip, ip, "/").unwrap()); - client.connector.r#loop(); + let client = Client::new(HTTPConnector::new(ip, ip, "/").unwrap()); + client.enter_loop(); } |
