-
-
Notifications
You must be signed in to change notification settings - Fork 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
Bitswap rounds #438
Merged
Merged
Bitswap rounds #438
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
c4a935c
go complains about lack of buildable file
jbenet 12b296e
create wantlist object
whyrusleeping 5b6a5e8
implement bitswap roundWorker
whyrusleeping 57e7dd7
extracted ledgerset from strategy, cleaned up a few comments from the PR
whyrusleeping 3778eed
dont spawn so many goroutines when rebroadcasting wantlist
whyrusleeping e7bba82
add priorities to GetBlocks requests, and add waitgroup to sendWantLi…
whyrusleeping 50aa37f
blockstore.ErrNotFound, and proper wantlist sorting
whyrusleeping da68475
fix go version
59f0ffb
remove noisy statement
946d2a9
add locks to wantlist to avoid race condition
whyrusleeping cfbe92b
rewrite sendWantlistToProviders
whyrusleeping 029e305
tasklist queue for bitswap tasks
whyrusleeping 90a3096
renaming and removing empty strategy file
whyrusleeping 2240272
change Provide RPC to not wait for an ACK, improves performance of 'A…
whyrusleeping 6389bfd
some cleanup before CR
whyrusleeping 86c438b
refactor() message API
29ef238
remove dead code
1bced71
queue-like naming
f028c44
name findOrCreate
f533678
avoid attaching context to object when it's not necessary.
69dd260
refactor peerSet
whyrusleeping c0a18d9
fix(test): nil Blockstore
5603b2e
style: line wrapping
8bef1dc
fix: move to callsite so public callers don't experience the internal…
a495a01
style constify variables
2ea8ed8
refactor: change Tasks to Outbox
8c05c44
refactor: avoid loop reuse
f66d94a
fix: move the check into the function.
10e970c
refactor: context first in argument list
4609678
doc: comment
93fde86
refactor: taskKey := p.Key() + block.Key()
286723d
unexport task and taskList
b41fef2
refactor: remove peerKey type
cc2a731
add comment to fix race
7280aac
perf: avoid lots of communication by signaling once at end of method
198aa19
it's not a queue yet but it's okay to name it as such
181ff4e
tq.Cancel -> tq.Remove
e11f099
privatize Task
1d71595
doc: add comment to Envelope
fedcebf
refactor: re-use wantlist.Entry type wherever it makes sense
7fdbae1
refactor: separate responsibilties
39d7193
mv comment
962a947
refactor: remove ledgerMap type
d069ae1
refactor: put mutex next to the things it protects
bef6222
refactor: wantlist splits into WL and ThreadSafe WL
5bd0b95
rename to strategy.LedgerManager to decision.Engine
1d23e94
rm empty file
acc7148
rename to peerRequestQueue
8d4d5b8
fix: don't sort the output of Entries()
1b1260b
rm unused method
9c301a2
add comment
6e7c46a
unexport functions
2b60b64
fix: check blockstore before adding task
e36d656
log unusual event
45faa4d
fix: set peerset size
1976488
doc: peerset fixme
0545c4d
refactor: *Entry -> Entry
4bcfe09
extract constants
175513e
refactor(bs/decision.Engine): pass in Entry
ce2d0a2
fix: add lock to taskQueue
bd3ee73
doc: some comments about the future of the decision engine
8100582
fix: batches of blocks have equal priority
9328fba
clean peerset constructor names
whyrusleeping 9fafec1
do not run epic tests in parallel
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
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.
👍