-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
expose function to convert byte slice to a connection ID #3614
expose function to convert byte slice to a connection ID #3614
Conversation
What is
|
I'm just re-exporting the methods from I am working on some experiments where I need greater control over connection IDs -- such as picking a different randomness generator (not
Sure, tho I'd like to keep it similar to whatever is in |
Sure, that's what the
It's not really doing any parsing. Really, it's just converting from a byte slice, hence my suggestion. |
@hf Are you planning to make these changes? |
Hey, yes I am but probably this weekend. |
df8091f
to
962204c
Compare
@marten-seemann Done! |
Codecov ReportBase: 85.48% // Head: 85.49% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3614 +/- ##
==========================================
+ Coverage 85.48% 85.49% +0.01%
==========================================
Files 141 142 +1
Lines 10296 10294 -2
==========================================
- Hits 8801 8800 -1
Misses 1109 1109
+ Partials 386 385 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Thank you! |
Although
quic.Config
exposes aConnectionIDGenerator
option, it's not usable outside of thequic-go
implementation becausetype ConnectionID = protocol.ConnectionID
andprotocol
is an internal package not accessible from the outside.To fix this, the
ReadConnectionID
andParseConnectionID
methods fromprotocol
are re-exported in the toplevel package.