Skip to content

Conversation

@garmr-ulfr
Copy link
Collaborator

Forgot to include the adapter definition file.

Copilot AI review requested due to automatic review settings December 18, 2025 21:56
@garmr-ulfr
Copy link
Collaborator Author

Merging. Forgot to commit this definition file.

@garmr-ulfr garmr-ulfr merged commit 27e6f1a into main Dec 18, 2025
5 checks passed
@garmr-ulfr garmr-ulfr deleted the add-missed-file branch December 18, 2025 21:57
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 adds a missing adapter interface definition file that was forgotten in a previous change. The new file defines the ClientContextManager interface which wraps adapter.ConnectionTracker from sing-box and adds an AppendTracker method.

Key Changes:

  • Added adapter/clientcontext_manager.go defining the ClientContextManager interface

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

package adapter

import "github.com/sagernet/sing-box/adapter"

Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

The exported interface ClientContextManager should have a documentation comment describing its purpose and usage. According to Go conventions, all exported types should have a doc comment that starts with the type name.

Suggested change
// ClientContextManager manages connection tracking for a client context by
// embedding a ConnectionTracker and allowing additional trackers to be appended.

Copilot uses AI. Check for mistakes.
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.

2 participants