Skip to content

refactor(quic): Endpoint#663

Merged
George-Miao merged 1 commit intocompio-rs:masterfrom
George-Miao:refactor/quic/endpoint
Feb 5, 2026
Merged

refactor(quic): Endpoint#663
George-Miao merged 1 commit intocompio-rs:masterfrom
George-Miao:refactor/quic/endpoint

Conversation

@George-Miao
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 5, 2026 06:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the Endpoint implementation in the QUIC module to align with the safer pattern established in SharedFd. The changes eliminate potentially unsafe code and improve code maintainability by following established conventions.

Changes:

  • Replaced the unsafe try_unwrap_inner method with a safer into_inner method that properly consumes self
  • Refactored the shutdown method's unwrap logic to follow the pattern used in SharedFd::take() from compio-driver/src/fd.rs
  • Added necessary imports (poll_fn and ptr) to support the refactored implementation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@George-Miao George-Miao requested a review from Berrysoft February 5, 2026 06:44
@George-Miao George-Miao self-assigned this Feb 5, 2026
@George-Miao George-Miao added refactor Refactoring existing code package: quic Related to compio-quic labels Feb 5, 2026
@George-Miao George-Miao force-pushed the refactor/quic/endpoint branch from a154ea0 to 2f93451 Compare February 5, 2026 06:45
@George-Miao George-Miao force-pushed the refactor/quic/endpoint branch from 2f93451 to 1a77800 Compare February 5, 2026 06:46
@George-Miao George-Miao merged commit 358be28 into compio-rs:master Feb 5, 2026
54 checks passed
@George-Miao George-Miao deleted the refactor/quic/endpoint branch February 5, 2026 06:58
@github-actions github-actions bot mentioned this pull request Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: quic Related to compio-quic refactor Refactoring existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants