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 support for client provided key to messages #98

Merged
merged 3 commits into from
Jan 25, 2023

Conversation

Monkatron95
Copy link
Contributor

@Monkatron95 Monkatron95 commented Jan 17, 2023

Implementation for this proposal: #92

A follow up PR will need to be made to https://github.com/uw-labs/substrate to support the KeyedMessage interface in the proximo client.


func (m *proximoMsg) Key() []byte {
// If no key is provided, use the message as the key,
// this is the default behaviour of substrate anyway
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe the default behaviour of substrate but i think the default behaviour of samara is to use an empty key

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was trying to keep the functionality as close to the current implementation as possible, at the moment when someone sends a message through proximo it will use the data as a key - that said if all of the backends support an empty key then I'd be happy to change it.

@Nesze
Copy link
Contributor

Nesze commented Jan 23, 2023

LGTM

@Monkatron95 Monkatron95 requested a review from jakekeeys January 24, 2023 12:00
@Monkatron95 Monkatron95 merged commit a4cf392 into uw-labs:master Jan 25, 2023
@Monkatron95 Monkatron95 deleted the support-message-keys branch January 25, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants