-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
proto: make initial destination cid configurable #1897
Conversation
d92a939
to
9179f71
Compare
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.
Looks reasonable, thanks!
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.
On second thought, should this be a field of ClientConfig
? It's only needed for outgoing connections, after all.
I tried but was stuck with the mutability of the ClientConfig. I'll find some time to implement a |
Not sure what you mean? |
The |
Updated to move it to ClientConfig |
9d7ff87
to
8cef4b2
Compare
Added a commit that replaces ConnectionIdGenerator with function trait instead. |
6ec8f5d
to
84d062b
Compare
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.
In the long run I want to make ConnectionIdGenerator::generate_cid
take &self
so we can share them more readily and do away with factories, but that'll be a breaking change regardless, so for simplicity in the short term I think I agree that a function trait object makes the most sense.
84d062b
to
70519d9
Compare
70519d9
to
ea3b6b0
Compare
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.
LGTM, thanks!
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.
Thanks!
ea3b6b0
to
a93d6d0
Compare
This PR implements #1896.