Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remote and local peers to ServerContext #2161

Merged
merged 5 commits into from
Jan 17, 2025
Merged

Conversation

gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Jan 16, 2025

This PR adds a localPeer property to the ServerContext, and renames peer to remotePeer.

This is related to #2158 on the client side and will be used to improve the server tracing interceptor.

@gjcairo gjcairo added the 🆕 semver/minor Adds new public API. label Jan 16, 2025
@gjcairo gjcairo requested a review from glbrntt January 16, 2025 17:10
@gjcairo
Copy link
Collaborator Author

gjcairo commented Jan 16, 2025

This API break is expected: the local peer is required so we can't not have it as part of the context's initialiser.

💔 API breakage: constructor ServerContext.init(descriptor:peer:cancellation:) has been removed

@gjcairo gjcairo added ⚠️ semver/major Breaks existing public API. and removed 🆕 semver/minor Adds new public API. labels Jan 16, 2025
@gjcairo
Copy link
Collaborator Author

gjcairo commented Jan 16, 2025

Also @glbrntt you'll have to merge this to override the failing required step

@glbrntt glbrntt merged commit 4214504 into grpc:main Jan 17, 2025
32 of 35 checks passed
@gjcairo gjcairo deleted the server-context branch January 17, 2025 08:39
glbrntt pushed a commit to grpc/grpc-swift-nio-transport that referenced this pull request Jan 17, 2025
This PR adopts the changes introduced in
grpc/grpc-swift#2161.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ semver/major Breaks existing public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants