diff --git a/ntex-codec/src/framed.rs b/ntex-codec/src/framed.rs index 79605199..7adbfbf4 100644 --- a/ntex-codec/src/framed.rs +++ b/ntex-codec/src/framed.rs @@ -569,9 +569,15 @@ mod tests { use crate::BytesCodec; #[ntex::test] - async fn test_debug() { + async fn test_basics() { let (_, server) = Io::create(); - let server = Framed::new(server, BytesCodec); + let mut server = Framed::new(server, BytesCodec); + server.get_codec_mut(); + server.get_ref(); + server.get_mut(); + + let parts = server.into_parts(); + let server = Framed::from_parts(FramedParts::new(parts.io, parts.codec)); assert!(format!("{:?}", server).contains("Framed")); } diff --git a/ntex/src/server/worker.rs b/ntex/src/server/worker.rs index bbe2bd7d..c5424720 100644 --- a/ntex/src/server/worker.rs +++ b/ntex/src/server/worker.rs @@ -170,7 +170,7 @@ impl Worker { let (tx2, rx2) = unbounded(); let avail = availability.clone(); - Arbiter::new().exec_fn(move || { + Arbiter::default().exec_fn(move || { let _ = spawn(async move { match Worker::create(rx1, rx2, factories, availability, shutdown_timeout) .await