Skip to content

Commit 0fec1c8

Browse files
SabrinaJewsonseanmonstar
authored andcommitted
refactor(server): move non-conn code out of conn.rs
The actual code for `Server` was previously organized very confusingly: it was thrice layered with `SpawnAll` and `Serve` which both appeared in conn.rs despite not having anything to do with the lower-level conn API. This commit changes that, removing all layering and having the code for the higher-level `Server` appear inside `server.rs` only.
1 parent 53f15e5 commit 0fec1c8

File tree

5 files changed

+262
-369
lines changed

5 files changed

+262
-369
lines changed

src/common/exec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::body::HttpBody;
1111
use crate::proto::h2::server::H2Stream;
1212
use crate::rt::Executor;
1313
#[cfg(all(feature = "server", any(feature = "http1", feature = "http2")))]
14-
use crate::server::conn::spawn_all::{NewSvcTask, Watcher};
14+
use crate::server::server::{Watcher, new_svc::NewSvcTask};
1515
#[cfg(all(feature = "server", any(feature = "http1", feature = "http2")))]
1616
use crate::service::HttpService;
1717

0 commit comments

Comments
 (0)