Skip to content

Conversation

@meling
Copy link
Member

@meling meling commented Apr 4, 2025

This adds support for per-message (client-side) metadata.MD to be passed in Gorums' Metadata object. This allows a client (or interceptor) to pass custom data to the server replicas. For example, a client can pass its client-id or request-id to the server, independent of the application-level message.

Note that this does not support canceling unary quorum calls etc. I've decided to defer adding support for cancellation until I understand it better.

Fixes #219
Fixes #172

meling added 3 commits April 5, 2025 00:34
This adds support for per-message (client-side) metadata md.MD to be
passed in Gorums' Metadata object. This allows a client (or interceptor)
to pass custom data to the server replicas. For example, a client can
pass its client-id or request-id to the server, independent of the
application-level message used.
This just adds a comment to the doc for a few methods that should only
be called from generated code.
@deepsource-io
Copy link
Contributor

deepsource-io bot commented Apr 4, 2025

Here's the code health analysis summary for commits 116ca75..94f9949. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Go LogoGo✅ Success
🎯 3 occurences resolved
View Check ↗
DeepSource Shell LogoShell✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@meling meling requested a review from Copilot April 5, 2025 09:02
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.

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

@meling meling merged commit c0a4771 into master Apr 5, 2025
5 checks passed
@meling meling deleted the meling/issue219/per-message-metadata branch April 5, 2025 09:07
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.

bug: Gorums does not forward context doc: gorums.NewServer claims to be for internal use

2 participants