-
Notifications
You must be signed in to change notification settings - Fork 1k
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(transport): allow ListenerId
to be user-controlled
#3567
Merged
Merged
Changes from 24 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
db8dbec
refactor(transport): Provide ListenerId in Transport::listen_on
dariusc93 3b4c37a
fix: Fix test
dariusc93 b35c50f
fix: Additional fixes
dariusc93 de5bd32
fix: Additional fixes
dariusc93 e55f4ed
fix: Remove ListenerId from Result
dariusc93 90446c2
fix: Additional fixes
dariusc93 a651083
Merge branch 'master' into listen_on_with_id
dariusc93 cc2b41c
chore: Formatted code
dariusc93 5178876
Merge branch 'master' into listen_on_with_id
dariusc93 117cf08
Merge branch 'master' into listen_on_with_id
dariusc93 c755ec0
chore: Update comments
dariusc93 2657ee9
Merge branch 'master' into listen_on_with_id
dariusc93 e55144f
chore: Formatted code
dariusc93 9d32aee
chore: Update example
dariusc93 861b7cc
chore: Use ListenerId instead of Default
dariusc93 579e002
chore: Use atomicu64 instead of random numbers
dariusc93 f17fe54
Merge branch 'master' into listen_on_with_id
dariusc93 0842eed
chore: format code
dariusc93 6acd5ac
chore: Import `ListenerId`
dariusc93 188fb15
Merge branch 'master' into listen_on_with_id
dariusc93 450a2d5
refactor: Add `ListenerId::next` and deprecate `ListenerId::new` and …
dariusc93 562d3b5
chore: formatted code
dariusc93 5d5df5c
chore: Use ListenerId::next instead of default
dariusc93 1e43396
chore: Use ListenerId::next
dariusc93 114c271
Update transports/websocket/src/framed.rs
dariusc93 07a7071
chore: Update CHANGELOG.md
dariusc93 cf10cc6
Merge branch 'master' into listen_on_with_id
dariusc93 3d65a69
Merge branch 'master' into listen_on_with_id
dariusc93 a3fc4c3
Merge branch 'master' into listen_on_with_id
dariusc93 ffe19ec
fix: Correct merged code
dariusc93 3199300
Update core/CHANGELOG.md
dariusc93 7d2a295
Update core/CHANGELOG.md
dariusc93 b1ebf65
chore: Use AtomicUsize
dariusc93 08ceb02
Update core/CHANGELOG.md
mxinden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we change this to
AtomicUsize
and use usize inListenerId
instead?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.
I don't think it really matters, happy to leave it as a u64. What do you think?
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.
I think we can leave it
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.
Adding to the above the argument of portability.
https://doc.rust-lang.org/std/sync/atomic/index.html#portability
Thus slight preference for
AtomicUsize
from my end. Also consistent withConnectionId
.