diff --git a/crates/alknet-endpoint/src/endpoint.rs b/crates/alknet-endpoint/src/endpoint.rs index faab3ff..9d9dd11 100644 --- a/crates/alknet-endpoint/src/endpoint.rs +++ b/crates/alknet-endpoint/src/endpoint.rs @@ -134,7 +134,12 @@ impl AlknetEndpoint { } #[cfg(feature = "tcp")] - if let Some((listener, acceptor)) = self.tcp_tls.lock().unwrap_or_else(|e| e.into_inner()).take() { + if let Some((listener, acceptor)) = self + .tcp_tls + .lock() + .unwrap_or_else(|e| e.into_inner()) + .take() + { let handlers = self.handlers.clone(); let identity_provider = self.identity_provider.clone(); let mut shutdown_rx = self.shutdown_rx.clone(); @@ -183,10 +188,10 @@ mod tests { use std::sync::Arc; use std::time::Duration; - use alknet_core::auth::{AuthToken, Identity, IdentityProvider}; - use alknet_core::config::DynamicConfig; #[cfg(feature = "iroh")] use alknet_core::auth::AuthContext; + use alknet_core::auth::{AuthToken, Identity, IdentityProvider}; + use alknet_core::config::DynamicConfig; #[cfg(feature = "iroh")] use alknet_core::types::{Connection, HandlerError}; #[cfg(feature = "iroh")] diff --git a/tasks/endpoint/review-endpoint.md b/tasks/endpoint/review-endpoint.md index 8fe7696..3079c4b 100644 --- a/tasks/endpoint/review-endpoint.md +++ b/tasks/endpoint/review-endpoint.md @@ -1,7 +1,7 @@ --- id: endpoint/review-endpoint name: Review alknet-endpoint implementation for spec conformance, API shape, and test coverage -status: pending +status: completed depends_on: [endpoint/tests] scope: moderate risk: low diff --git a/tasks/endpoint/tests.md b/tasks/endpoint/tests.md index a6f49f0..39ad0c9 100644 --- a/tasks/endpoint/tests.md +++ b/tasks/endpoint/tests.md @@ -1,7 +1,7 @@ --- id: endpoint/tests name: Move and adapt endpoint tests from alknet-core/endpoint.rs into alknet-endpoint -status: pending +status: completed depends_on: [endpoint/accept-quinn, endpoint/accept-iroh, endpoint/accept-tcp-tls] scope: moderate risk: medium