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 message metadata to RpcHandler #221

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

AnotherDaniel
Copy link
Contributor

@AnotherDaniel AnotherDaniel commented Dec 9, 2024

Currently, rpc RequestHandler does not provide access to received message metadata like message source, payload format etc.

This PR adds message UAttributes to the RequestHandlers handle_request() method trait and modifies InMemoryRpcServer to pass this information on when calling into a handler.

Adresses #222

@AnotherDaniel AnotherDaniel self-assigned this Dec 9, 2024
@sophokles73 sophokles73 added the enhancement New feature or request label Dec 10, 2024
Copy link
Contributor

@sophokles73 sophokles73 left a comment

Choose a reason for hiding this comment

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

LGTM

@sophokles73 sophokles73 added the breaking change This pull request introduces a change to public API which is not backwards compatible label Dec 10, 2024
@sophokles73
Copy link
Contributor

Can you please also create a corresponding issue that describes the problem?

@AnotherDaniel AnotherDaniel merged commit 66830f3 into main Dec 10, 2024
11 checks passed
@AnotherDaniel AnotherDaniel deleted the rpcserver_metadata branch December 10, 2024 09:00
@sophokles73
Copy link
Contributor

@AnotherDaniel
I had actually hoped for you to create the issue (and linking the commit to it) before merging this PR ...

@AnotherDaniel
Copy link
Contributor Author

I did...

@sophokles73
Copy link
Contributor

sophokles73 commented Dec 10, 2024

Ah, I see. You had already closed it ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This pull request introduces a change to public API which is not backwards compatible enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants