Skip to content

update documentation for Transport.ConnContext#92

Merged
marten-seemann merged 2 commits into
masterfrom
new-conn-context
Jun 9, 2025
Merged

update documentation for Transport.ConnContext#92
marten-seemann merged 2 commits into
masterfrom
new-conn-context

Conversation

@marten-seemann

Copy link
Copy Markdown
Member

This was introduced by @sukunrt in quic-go/quic-go#5122 and released in v0.52.0.

@marten-seemann marten-seemann requested a review from Copilot June 9, 2025 10:39

This comment was marked as outdated.

@sukunrt sukunrt left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

whoops. missed this.

@marten-seemann marten-seemann requested a review from Copilot June 9, 2025 15:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the documentation for Transport.ConnContext to reflect its new signature introduced in v0.52.0.

  • Updated the function signature in the code sample to include an additional parameter and return an error.
  • Added a callout section explaining how returning an error can reject a connection attempt.
Comments suppressed due to low confidence (1)

content/docs/quic/connection.md:21

  • [nitpick] Consider adding a brief inline comment to explain the purpose of the new 'info' parameter to improve clarity for readers of the documentation.
ConnContext: func(ctx context.Context, info *quic.ClientInfo) (context.Context, error) {

@marten-seemann marten-seemann merged commit 4b8d31d into master Jun 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants