Skip to content

feat(grpc): SafeMetadata implementation (Fixes Ergonomics & Safety)#1450

Open
merchantmoh-debug wants to merge 237 commits intogetkyo:mainfrom
merchantmoh-debug:bounty/grpc-metadata-fix
Open

feat(grpc): SafeMetadata implementation (Fixes Ergonomics & Safety)#1450
merchantmoh-debug wants to merge 237 commits intogetkyo:mainfrom
merchantmoh-debug:bounty/grpc-metadata-fix

Conversation

@merchantmoh-debug
Copy link
Copy Markdown

This PR supercedes #1334.

It introduces SafeMetadata, an immutable, thread-safe wrapper around io.grpc.Metadata, solving the ergonomics issues blocking the original PR.

Key Changes:

  • Added kyo.grpc.SafeMetadata (Immutable Algebra).
  • Refactored RequestOptions, ClientCall, and ServerCallHandlers to use potentially-unsafe io.grpc.Metadata ONLY at the IO boundary.
  • Updated benchmarks to match new API.

Closes #390
/claim #390

@merchantmoh-debug
Copy link
Copy Markdown
Author

@steinybot @ghostdogpr - Solved. - Just need a review - any changes let me know. This one's been sitting untouched for too long. Glad I could get it off your guys bucket list.

@merchantmoh-debug
Copy link
Copy Markdown
Author

@fwbrasil @steinybot @carlosedp @nightscape

Requesting review. This resolves the bounty.

@ahoy-jon
Copy link
Copy Markdown
Collaborator

ahoy-jon commented Apr 5, 2026

However it creates an issue with the existing PR. It's would have been easier to review with a split bounty or help on the previous PR from steinybot.

Don't hesitate to reach us on discord to discuss about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gRPC Support

4 participants