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

feat: implement Hash for MessageChannel #226

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

jcdickinson
Copy link
Contributor

This adds the Hash trait to MessageChannel. I need this in my project to use a MessageChannel as a key in a HashMap (as actor types are generally unknown for my use case). Pairs with the existing PartialEq.

Copy link
Collaborator

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Concept ACK but can you add unit tests please?

@jcdickinson
Copy link
Contributor Author

Updated. The failing check seems unrelated to my changes, and I can't repro it locally.

@thomaseizinger
Copy link
Collaborator

Updated. The failing check seems unrelated to my changes, and I can't repro it locally.

I'll see if I can quickly fix that.

Copy link
Collaborator

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Awesome stuff, thank you for adding these tests!

@thomaseizinger
Copy link
Collaborator

I've opened #227 to fix CI need to wait for @Restioson to approve it!

@Restioson Restioson self-requested a review July 5, 2024 07:14
Copy link
Owner

@Restioson Restioson left a comment

Choose a reason for hiding this comment

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

Apologies for getting to this late; I've been at a conference

@thomaseizinger
Copy link
Collaborator

@jcdickinson Can you rebase on latest master?

@jcdickinson
Copy link
Contributor Author

Done!

@thomaseizinger thomaseizinger merged commit 3714ce8 into Restioson:master Jul 5, 2024
6 checks passed
@jcdickinson jcdickinson deleted the impl-hash branch July 9, 2024 04:55
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.

3 participants