-
Notifications
You must be signed in to change notification settings - Fork 42
rust: Add SinkId for identifying sinks #290
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me
Where is the actual comparison happening (and generally who is going to be using this)? |
It's primarily for internal use. Currently, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine, it should make it easier to work with hashmaps
9bd1af0
to
5a973fa
Compare
7e07e95
to
4fb5fa9
Compare
Changelog
SinkId
and new mandatorySink::id()
trait method.Description
We've been using Arc pointers to compare log sinks, which is… fine. But it'd be a bit nicer if we just had a SinkId to use, like we have a ChannelId. That would give us a natural way of indexing sinks, which will be useful for both sink deregistration as well as subscription management.