From ab56acae69f94cab7373019892ae88708ff0b51b Mon Sep 17 00:00:00 2001 From: deepseek-v4-pro Date: Fri, 17 Jul 2026 10:54:50 +0000 Subject: [PATCH] feat(endpoint): complete review and mark all tasks as completed - Fix formatting in endpoint.rs - Mark tests.md and review-endpoint.md as completed - All 9 endpoint tasks are now complete - Workspace: all tests pass, clippy clean, fmt clean --- crates/alknet-endpoint/src/endpoint.rs | 11 ++++++++--- tasks/endpoint/review-endpoint.md | 2 +- tasks/endpoint/tests.md | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) 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