-
Notifications
You must be signed in to change notification settings - Fork 235
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
Extract DHT message sender from the DHT #659
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c9c088f
refactor: extract messaging components from IpfsDHT into its own stru…
aschmahmann a3c7c3d
docs: cleaned up comments
aschmahmann 94d08a2
refactor: decouple ProtocolMessenger from MessageSender implementation
aschmahmann 7b5446a
refactor: temporarily export loggable bytes array aliases before movi…
aschmahmann 7a80399
refactor: move logging helpers to internal package
aschmahmann 52b4eb2
refactor: move invalid record error into internal package
aschmahmann f73b905
refactor: move ProtocolMessenger into new package
aschmahmann 786c3c9
refactor: return nil instead of an empty record when processing an in…
aschmahmann 4b3a573
refactor: move message manager to its own file
aschmahmann 9977256
refactor: cleanup protocol messenger comments
aschmahmann 138cb80
refactor: move protocol messenger to pb package
aschmahmann 2c313a8
refactor: rename messageSender to peerMessageSender and added comment…
aschmahmann 9ebf306
refactor: factor out reused string
aschmahmann 6fca41f
comments: added comments clarifying the contract of getLocal
aschmahmann ebd2d69
rename messageManager to messageSenderImpl and renamed dht.messageMgr to
aschmahmann 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
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.
this.. seems like it's an error not a
nil
?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.
probably... I mean realistically it wouldn't even be crazy to panic here since if this occurs then there was a programming error somewhere.
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.
While this shouldn't happen, returning
nil, nil
when there is a validation error does fulfill the function contract just like it does indht.getRecordFromDatastore
. I've copied the comment explaining that fromdht.getRecordFromDatastore
to here.