-
-
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
Bithack #386
Bithack #386
Commits on Dec 5, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 5be35a8 - Browse repository at this point
Copy the full SHA 5be35a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dece16 - Browse repository at this point
Copy the full SHA 5dece16View commit details -
@whyrusleeping This appears to be a timing issue. The asynchronous nature of the new structure provides has the bitswap waiting on the context a bit more. This isn't a problem at all, but in this test, it makes the functions return in an inconveniently timely manner. TODO don't let the test depend on time. License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for cfd7d53 - Browse repository at this point
Copy the full SHA cfd7d53View commit details -
events(bitswap) try the new event logger in the bitswap GetBlock method
@jbenet @whyrusleeping Let me know if you want to direct the eventlog output to _both_ the file and stderr. Right now it goes to file. Perhaps this is just a minor bip in the larger discussion around log levels. #292 License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 77696a4 - Browse repository at this point
Copy the full SHA 77696a4View commit details -
@whyrusleeping License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for ef83126 - Browse repository at this point
Copy the full SHA ef83126View commit details -
fix(bitswap) consistent event names
@whyrusleeping @jbenet since the logger is created with package scope, don't need to specify the package name in event messages License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 768cd36 - Browse repository at this point
Copy the full SHA 768cd36View commit details -
@whyrusleeping License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 5a4eed4 - Browse repository at this point
Copy the full SHA 5a4eed4View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 5165fce - Browse repository at this point
Copy the full SHA 5165fceView commit details -
clarify MessageReceived contract
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 7239036 - Browse repository at this point
Copy the full SHA 7239036View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 3ee7ff5 - Browse repository at this point
Copy the full SHA 3ee7ff5View commit details -
constify to make it clear what _can_ and _can't_ change over time
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 6c2a666 - Browse repository at this point
Copy the full SHA 6c2a666View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for e5983cb - Browse repository at this point
Copy the full SHA e5983cbView commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for f8243c3 - Browse repository at this point
Copy the full SHA f8243c3View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 9af9ee6 - Browse repository at this point
Copy the full SHA 9af9ee6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d14475 - Browse repository at this point
Copy the full SHA 4d14475View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0abc72c - Browse repository at this point
Copy the full SHA 0abc72cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4b2ae3 - Browse repository at this point
Copy the full SHA e4b2ae3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19da057 - Browse repository at this point
Copy the full SHA 19da057View commit details -
Configuration menu - View commit details
-
Copy full SHA for 297ff3d - Browse repository at this point
Copy the full SHA 297ff3dView commit details -
style(bitswap/notifications) make it more obvious
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 85229be - Browse repository at this point
Copy the full SHA 85229beView commit details -
feat(bitswap/notifications) Subscribe to multiple keys
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 8f82308 - Browse repository at this point
Copy the full SHA 8f82308View commit details -
tests(bitswap) share constructor between tests
@whyrusleeping i hope this makes it a bit easier to work with tests License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 81a3ba0 - Browse repository at this point
Copy the full SHA 81a3ba0View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for cc92ec3 - Browse repository at this point
Copy the full SHA cc92ec3View commit details -
refactor(bitswap) move wantlist to loop receive
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for b13a5a9 - Browse repository at this point
Copy the full SHA b13a5a9View commit details -
feat(bitswap) implement GetBlocks
@whyrusleeping @jbenet License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 11f2856 - Browse repository at this point
Copy the full SHA 11f2856View commit details -
fix(bitswap) stop the ticker when the run loop exits
@whyrusleeping License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for a5754a5 - Browse repository at this point
Copy the full SHA a5754a5View commit details -
tests(bitswap) share code between the two large tests
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 5babfb9 - Browse repository at this point
Copy the full SHA 5babfb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99ae432 - Browse repository at this point
Copy the full SHA 99ae432View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1b42a5 - Browse repository at this point
Copy the full SHA b1b42a5View commit details -
refactor(blockstore) mv under blocks/
@jbenet @whyrusleeping the pyramids were built one brick at a time addresses: #370 License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 918c8e2 - Browse repository at this point
Copy the full SHA 918c8e2View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for eb0bde0 - Browse repository at this point
Copy the full SHA eb0bde0View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 04a8a61 - Browse repository at this point
Copy the full SHA 04a8a61View commit details -
refactor(blockstore, blockservice) use Blockstore and offline.Exchange
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for d0304de - Browse repository at this point
Copy the full SHA d0304deView commit details -
fix(bitswap/loop) add to wantlist just once
oops set Add is idempotent but it's a waste of resources License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 7c2053c - Browse repository at this point
Copy the full SHA 7c2053cView commit details -
feat(bitswap) find providers for all keys on wantlist
@jbenet @whyrusleeping this addresses a failure case where 1) bitswap wants blocks A and B 2) partner 1 has A and partner 2 has B 3) We choose a key at random, drawing A. 4) Then, we request A, neglecting to find a provider for B. Sending the full wantlist is meant to be used as a helpful additional piece of data, but... unless our hunch is support by statistical inference at runtime, it's not safe to assume that a peer will have blocks for related keys. Routing must be the source of truth. License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for ecf62db - Browse repository at this point
Copy the full SHA ecf62dbView commit details -
feat(bitswap) loop over all provided keys
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for f6cb4ab - Browse repository at this point
Copy the full SHA f6cb4abView commit details -
eh? License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 5bd3b17 - Browse repository at this point
Copy the full SHA 5bd3b17View commit details -
fix(bitswap) signal termination to async'ly spawned workers
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 4ef780a - Browse repository at this point
Copy the full SHA 4ef780aView commit details -
fix(exchange) allow exchange to be closed
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for c7c0859 - Browse repository at this point
Copy the full SHA c7c0859View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ce6071 - Browse repository at this point
Copy the full SHA 0ce6071View commit details -
refactor(bitswap) group the deferreds
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 59a32b1 - Browse repository at this point
Copy the full SHA 59a32b1View commit details -
test(bitswap) Close (but skip for now)
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for ab201c1 - Browse repository at this point
Copy the full SHA ab201c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d53deeb - Browse repository at this point
Copy the full SHA d53deebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15d4f82 - Browse repository at this point
Copy the full SHA 15d4f82View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed45099 - Browse repository at this point
Copy the full SHA ed45099View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 438ffa1 - Browse repository at this point
Copy the full SHA 438ffa1View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for be26785 - Browse repository at this point
Copy the full SHA be26785View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for fc820a8 - Browse repository at this point
Copy the full SHA fc820a8View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for a932bfd - Browse repository at this point
Copy the full SHA a932bfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9120d10 - Browse repository at this point
Copy the full SHA 9120d10View commit details -
we expect this to fail. will be fixed in upcoming commit License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for d5e7fd6 - Browse repository at this point
Copy the full SHA d5e7fd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50b00eb - Browse repository at this point
Copy the full SHA 50b00ebView commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 1fb8033 - Browse repository at this point
Copy the full SHA 1fb8033View commit details -
fix(bitswap/notifications) subscribe to many
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 03324f7 - Browse repository at this point
Copy the full SHA 03324f7View commit details -
tests(bitswap/notifications) test niladic
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for a5fccac - Browse repository at this point
Copy the full SHA a5fccacView commit details -
refactor(bitswap) forwardN no longer needed
@whyrusleeping now, the pubsub channel closes after sending N blocks. we got this functionality for free from the fix. So, the forwardN wrap is no longer required! woohoo License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for b3d3b1d - Browse repository at this point
Copy the full SHA b3d3b1dView commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 134929a - Browse repository at this point
Copy the full SHA 134929aView commit details -
fix(bs/n) remove unnecessary variable
to remove ambiguity (before it was possible to loop over either topics or keys by only keeping keys, there's no confusing about what to use for the loop range License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 6a5bc4b - Browse repository at this point
Copy the full SHA 6a5bc4bView commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for e4c9731 - Browse repository at this point
Copy the full SHA e4c9731View commit details -
hotfix(dep) duplicates TEMP DONT MERGE TO MASTER
before merging, fork and send a PR to tuxy License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 044db5b - Browse repository at this point
Copy the full SHA 044db5bView commit details -
Revert "hotfix(dep) duplicates TEMP DONT MERGE TO MASTER"
This reverts commit 49004e9.
Configuration menu - View commit details
-
Copy full SHA for e393edc - Browse repository at this point
Copy the full SHA e393edcView commit details -
test(bs/n) check for duplicates received
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 2038234 - Browse repository at this point
Copy the full SHA 2038234View commit details -
fix(bs/notifications) prevent duplicates
@whyrusleeping now notifications _guarantees_ there won't be any duplicates License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 9bf1ba6 - Browse repository at this point
Copy the full SHA 9bf1ba6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d217b5 - Browse repository at this point
Copy the full SHA 6d217b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07bb901 - Browse repository at this point
Copy the full SHA 07bb901View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for aac3c6a - Browse repository at this point
Copy the full SHA aac3c6aView commit details -
fix(bitswap) build-breaking compilation errors
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 19de304 - Browse repository at this point
Copy the full SHA 19de304View commit details -
fix(bs/notifications) use SubOnceEach to provide uniqueness guarantee
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com> vendor forked pubsub to get SubOnceEach License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for fb57796 - Browse repository at this point
Copy the full SHA fb57796View commit details -
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for bef75d5 - Browse repository at this point
Copy the full SHA bef75d5View commit details -
fix(blockservice) respect context in GetBlocks
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for e27de2b - Browse repository at this point
Copy the full SHA e27de2bView commit details -
reset test to the way it ways before
@whyrusleeping License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for d721c44 - Browse repository at this point
Copy the full SHA d721c44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cc1780 - Browse repository at this point
Copy the full SHA 4cc1780View commit details -
Configuration menu - View commit details
-
Copy full SHA for d063430 - Browse repository at this point
Copy the full SHA d063430View commit details -
refactor(util) move block generator
@whyrusleeping @jbenet Putting the block generator in a util dir until blocks. Can't put it in util/testutil because the util/testutil/dag-generator imports blockservice and blockservice uses the generator. Tough problem. This'll do for now. License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 7a3819a - Browse repository at this point
Copy the full SHA 7a3819aView commit details -
fix(notifications) prevent deadlock when context cancelled early
+ test(notifications) cc @whyrusleeping @jbenet License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for bb0b5f7 - Browse repository at this point
Copy the full SHA bb0b5f7View commit details -
fix(bitswap) pass derived context to called functions
@whyrusleeping @jbenet License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 829eac3 - Browse repository at this point
Copy the full SHA 829eac3View commit details -
refactor(bitswap) perform Publish in HasBlock
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 1e7b7ef - Browse repository at this point
Copy the full SHA 1e7b7efView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0a4fda - Browse repository at this point
Copy the full SHA f0a4fdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc02b77 - Browse repository at this point
Copy the full SHA bc02b77View commit details -
doc(bitswap) fix duplicaduplication
@whyrusleeping ada5714#commitcomment-8753622 License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Configuration menu - View commit details
-
Copy full SHA for 9835c1e - Browse repository at this point
Copy the full SHA 9835c1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a6b6c6 - Browse repository at this point
Copy the full SHA 3a6b6c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2b497e - Browse repository at this point
Copy the full SHA c2b497eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 514b26e - Browse repository at this point
Copy the full SHA 514b26eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8536db - Browse repository at this point
Copy the full SHA e8536dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 432eee6 - Browse repository at this point
Copy the full SHA 432eee6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6552163 - Browse repository at this point
Copy the full SHA 6552163View commit details -
Configuration menu - View commit details
-
Copy full SHA for 260ace7 - Browse repository at this point
Copy the full SHA 260ace7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f054be9 - Browse repository at this point
Copy the full SHA f054be9View commit details -
Configuration menu - View commit details
-
Copy full SHA for afa28dc - Browse repository at this point
Copy the full SHA afa28dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 260ac96 - Browse repository at this point
Copy the full SHA 260ac96View commit details