Henry
2ca2a042b9
godeps: update metrics (freebsd build fix)
2015-05-06 14:14:40 +02:00
Jeromy
9cf8c5cbc9
update iptb dependency and use different ports for each iptb cluster
...
update iptb dependency again, and pick different ports for each iptb cluster
try and fix godeps crap
2015-05-04 19:45:44 -07:00
Henry
d368cb7a43
godep: update go-msgio
2015-05-03 04:29:13 +02:00
Tommi Virtanen
2dd9b16878
Vendor newer github.com/jbenet/go-datastore
2015-05-01 10:54:47 -07:00
Tommi Virtanen
a8f0d3d411
Vendor github.com/codahale/metrics
2015-05-01 10:51:14 -07:00
Juan Batiz-Benet
ea06ca0265
Merge pull request #1160 from ipfs/fix/dial-error-hiding
...
Fix/dial error hiding
2015-05-01 03:27:11 -07:00
Jeromy
6f510b322e
label timeout error from reuseport/poll
2015-04-28 14:48:28 -07:00
Jeromy
194dc2bf7b
bring some errors that were being hidden in the dial sequence to the surface
2015-04-28 13:57:15 -07:00
Henry
9ff03782ee
godep: update h2so5/utp
...
the godep tool is toying with me...
2015-04-28 13:42:24 +02:00
Henry
f20c4566ec
godep: updated
2015-04-28 13:42:24 +02:00
Henry
7a6febbe38
godeps: following up on PR #1098 to drop the facebookgo code
...
I want to follow this up with a thorough execution of my x/tool/cmd/eg experiments (https://github.com/ipfs/go-ipfs/compare/errRampage )
2015-04-28 13:42:23 +02:00
Henry
362fc02713
godep: make sure to vendor iptb
2015-04-28 13:42:23 +02:00
Henry
5fff7742f3
godeps: move (go)goprotobuf to github location
2015-04-28 13:42:22 +02:00
Juan Batiz-Benet
c9bf470302
Merge pull request #1140 from ipfs/flatfs-rides-again
...
Fix flatfs on Windows
2015-04-26 23:12:59 -07:00
Jeromy
2c1c48a165
Add iptb sharness test for multi-ipns name resolution
2015-04-26 22:32:12 -07:00
Tommi Virtanen
ce0b10a9d3
Vendor new go-datastore, with Windows fixes
...
fixes #1108
2015-04-25 19:13:43 -07:00
Juan Batiz-Benet
1d5f68cdc6
godep: vendor correctly.
...
I'm so sick of this absolute crap. It goes wrong all the time.
I want to get off godeps soon. But for now, let's **please**
setup a test on travis that exercises all sorts of godep things
to avoid merging anything that will break.
Maybe we can fail the build if any library is NOT vendored.
2015-04-23 13:30:42 -07:00
Jeromy
89ff6dfdaa
add clone of 3node test using iptb instead of docker
...
rename directory and update vendored dep
cleanup
2015-04-22 21:25:52 -07:00
Jeromy
5aea206734
fix log callstack for log messages
2015-04-22 17:11:53 -07:00
Juan Batiz-Benet
58d6d1e7b6
updated vendored mdns libs
2015-04-22 00:49:40 -07:00
Juan Batiz-Benet
73c3888812
vendored mdns deps
2015-04-21 23:57:48 -07:00
Juan Batiz-Benet
b223dc2d05
fix vendoring problems from migrations
2015-04-21 23:57:09 -07:00
Jeromy
e965c53780
remove / prefix and close directories properly in query
2015-04-20 02:24:23 -07:00
Tommi Virtanen
24daeec70c
Use flatfs to store objects under /blocks outside of LevelDB
...
WARNING: No migration performed! That needs to come in a separate
commit, perhaps amended into this one.
Migration must move keyspace "/b" from leveldb to the flatfs subdir,
while removing the "b" prefix (keys should start with just "/").
2015-04-20 02:24:23 -07:00
Tommi Virtanen
4f4b894627
Update vendored go-datastore, now has flatfs and mount
2015-04-20 02:22:46 -07:00
Juan Batiz-Benet
7eb4a92aba
0-to-1 fsrepo migration
2015-04-20 02:20:31 -07:00
Juan Batiz-Benet
ff34efba75
re-vendored hamming lib with license
2015-04-19 13:59:56 -07:00
Kristoffer Ström
2c3f9f2419
Add hamming distance calculation to bloom filters
2015-04-15 17:13:47 +02:00
Juan Batiz-Benet
dbef4efd38
updated goprocess to deal with memory leak
2015-04-12 04:40:22 -07:00
Kristoffer Ström
3d8e96a22e
Make bloom filters simpler
...
These did not work before, and had some unnecessary complexity.
Now the filters use only one hashing function, no bignum arithmetic, and gets the additional bit positions by repeatedly hashing the result of prior hash.
Since we're not concerned about crypto hashing here, this should be a win.
External interfaces unchanged.
2015-04-07 18:03:15 +02:00
Jeromy
2c8cb9fc75
bandwidth metering on streams
...
humanize bandwidth output
instrument conn.Conn for bandwidth metrics
add poll command for continuous bandwidth reporting
move bandwidth tracking onto multiaddr net connections
another mild refactor of recording locations
address concerns from PR
lower mock nodes in race test due to increased goroutines per connection
2015-03-31 19:58:08 -07:00
Ho-Sheng Hsiao
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Henry
c5a69db601
updated godeps
2015-03-23 09:51:44 +01:00
Juan Batiz-Benet
7777a231f0
updated goprocess -- bugfixes
2015-03-18 01:14:41 -07:00
Juan Batiz-Benet
9d167cd5e8
testfix: dont break 8k goroutine limit under race
2015-03-04 07:34:04 -08:00
Henry
d743801638
godep: changed back to inflect upstream
2015-03-01 13:22:27 +01:00
Henry
d69bdecbc7
move back to upstream logrus
2015-03-01 00:59:33 +01:00
Henry
84262be070
godep&x/crypto: updated multihash and moved to x/crypto for blowfish
2015-03-01 00:49:44 +01:00
Henry
6cc6a80039
godeps: maybebtc renamed is account
2015-02-27 14:40:45 +01:00
Henry
74767f004f
Revert "godeps: drop go-humanize"
...
shareness needs the go-random/random utility. Godep doesnt know that.
2015-02-27 13:37:24 +01:00
Henry
f6dacd4f6c
godeps: drop go-humanize
...
wasn't used by ipfs directly, only by two main packages of dependencies that we tracks
github.com/h2so5/utp/benchmark/main.go
github.com/jbenet/go-random/random/random.go
2015-02-27 13:26:09 +01:00
Henry
59402803be
updated inconshreveable/go-update to get new import location of kardianos/osext
2015-02-25 12:25:35 +01:00
Henry
92d08db7a5
rewrote import paths of go.net/context to use golang.org/x/context
...
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go
- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo
- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)
Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.
Andrew Gerrand (1):
go.net: use golang.org/x/... import paths
Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.
Damien Neil (1):
context: fix removal of cancelled timer contexts from parent
David Symonds (2):
context: Fix WithValue example code.
net: add import comments.
Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
Brian Tiger Chow
8f62ac8272
vendor: fzzy/radix/redis
2015-02-15 04:41:18 -08:00
Brian Tiger Chow
bcfa539272
vendor aws, s3
...
vendor: goamz/aws and goamz/s3
2015-02-14 14:13:55 -08:00
Juan Batiz-Benet
a4c522bcd4
go-multihash update
2015-02-07 12:53:10 -08:00
Brian Tiger Chow
4c920d0281
Revert "run make vendor (removes go-humanize)"
...
This reverts commit bbcc86b78e .
humanize is required for sharness. doh!
2015-02-04 15:38:38 -08:00
Brian Tiger Chow
bbcc86b78e
run make vendor (removes go-humanize)
2015-02-04 15:32:16 -08:00
Juan Batiz-Benet
6f9c297f08
update multiaddr for ipfs addrs
2015-02-01 05:16:52 -08:00
Brian Tiger Chow
ddc5bb89d7
vendor inflection package (MIT)
2015-01-30 06:57:41 -08:00
Juan Batiz-Benet
7ae3706b6d
fuse: no longer require fuse to compile ipfs
...
This commit removes the dependency on go-fuse-version, and thus the
fuse headers. It also introduces an elaborate troubleshooting process
that diagnoses whether fuse installed -- and which version -- with as
little requirements as possible (attept to use sysctl, fall-back on
the go-fuse-version binary, etc). It then nicely instructs the user
what to do next.
2015-01-28 05:18:41 -08:00
Juan Batiz-Benet
913a733e9b
helpful panics
2015-01-26 13:45:01 -08:00
Juan Batiz-Benet
fe00ad8a2c
nat upnp and pmp libs
2015-01-24 12:41:49 -08:00
Juan Batiz-Benet
eb79b1b637
Merge pull request #645 from jbenet/net-notif
...
Network Notifications
2015-01-24 10:25:53 -08:00
Juan Batiz-Benet
7e8a17aa7d
updated goprocess for godep restore test
2015-01-24 09:33:09 -08:00
Juan Batiz-Benet
b63cbf5331
updated peerstream
2015-01-24 09:13:43 -08:00
Matt Bell
487ef33e67
core/commands: Added progress bar to 'cat'
...
squash! core/commands: Added progress bar to 'cat'
Vendored progress bar lib
2015-01-23 18:29:30 -08:00
Juan Batiz-Benet
bb2d81ace2
Merge pull request #622 from jbenet/webui-commands
...
Webui Commands
2015-01-23 16:51:11 -08:00
Juan Batiz-Benet
bf1690f42e
fixed fd leaks in go-reuseport
2015-01-23 16:17:49 -08:00
Juan Batiz-Benet
c43f97d64e
updated goprocess, for periodic
2015-01-23 02:08:29 -08:00
Juan Batiz-Benet
f6278735ef
net/diag: recursively decrement timeouts.
...
Not sure this works. we dont have tests for net diag.
We should make some.
cc @whyrusleeping.
2015-01-23 02:08:28 -08:00
Juan Batiz-Benet
8d08e1e3d6
reuseport: respect dialer timeout
2015-01-23 01:46:55 -08:00
Matt Bell
926b96463d
core/commands: Added 'log read' command
...
squash! core/commands: Added 'log read' command
core/commands: Use a unidirectional channel for 'log read' output
2015-01-22 16:28:59 -08:00
Juan Batiz-Benet
ee4c727c83
update reuseport for the check
2015-01-20 19:34:49 -08:00
Juan Batiz-Benet
908ff837fd
updated peerstream (race)
2015-01-20 11:26:55 -08:00
Juan Batiz-Benet
9062b9fe6c
connect timing fixes to reuseport
2015-01-19 23:18:52 -08:00
Juan Batiz-Benet
7a3e0cdc75
CR updates to go-reuseport + go-sockaddr
2015-01-19 23:18:52 -08:00
Juan Batiz-Benet
911a3c90bc
added go-reuseport + go-sockaddr
2015-01-19 23:18:51 -08:00
Juan Batiz-Benet
eb50900fff
updated multiaddr-net for WrapNetListener
2015-01-19 23:18:51 -08:00
Brian Tiger Chow
043b57f075
update random
2015-01-18 15:09:54 -08:00
Juan Batiz-Benet
2963f48f62
Merge pull request #554 from jbenet/feat/reprovide
...
basic reprovider implementation
2015-01-17 03:03:01 -08:00
Jeromy
acfc35212e
add backoff retry to reprovider
2015-01-17 04:31:50 +00:00
Brian Tiger Chow
9700d2f94b
use atomicfile for safer writes
...
for now, allow daemon and client to both hit config
2015-01-14 03:02:23 -08:00
Juan Batiz-Benet
dc6b548094
vendor fixed go-fuse-version
2015-01-13 22:12:29 -08:00
Juan Batiz-Benet
b36ca66f7c
multiaddr update: recognize link local ip6
2015-01-12 19:15:02 -08:00
Juan Batiz-Benet
ab824a51ff
added debug printing to peerstream
2015-01-12 10:53:53 -08:00
Juan Batiz-Benet
92e8a7bcd5
updated datastore for proper query handling
...
Queries now can be cancelled and the resources collected
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
c0cc951118
updated goprocess
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
f9ca67ef04
updated datastore (Query)
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
14b4c8223b
updated peerstream: fixed hanging bug
...
peerstream would hang when it got many temporary errors.
temp errors should not count as an error. Now, it will
only exit when an error is not temporary.
I kept the acceptErr channel because it will no longer
cause a bad hang. The goroutine is exiting, so if it
blocks until acceptErr is read, it's fine. If users
launch tons of listers and see goroutines building up,
they know they should be reading + logging those.
2015-01-11 12:55:33 -08:00
Juan Batiz-Benet
fd3e0bb37c
added temp-err-catcher
2015-01-11 12:55:33 -08:00
Juan Batiz-Benet
6b308292e7
go humanize
2015-01-10 01:11:10 -08:00
Juan Batiz-Benet
01f9ef3c54
added fuseversion for osxfuse
2015-01-10 01:07:43 -08:00
Juan Batiz-Benet
e1a0486e15
updated go-multiaddr-net (disabled utp)
2015-01-09 06:16:29 -08:00
Juan Batiz-Benet
19a5f088d5
updated multiaddr
2015-01-09 06:13:24 -08:00
Juan Batiz-Benet
c88a4b2ccc
peerstream update (gc conns)
2015-01-07 19:01:10 -08:00
Juan Batiz-Benet
12fd3555a1
added dep github.com/jbenet/goprocess
2015-01-06 08:54:04 -08:00
Juan Batiz-Benet
4309d15edb
updated msgio (varints)
2015-01-02 08:46:45 -08:00
Juan Batiz-Benet
4d08eb0140
updated multihash (io)
2015-01-02 08:46:44 -08:00
Juan Batiz-Benet
8acfcebd67
use yamux as go-peerstream transport
...
go-peerstream update to use github.com/hashicorp/yamux
2015-01-01 23:24:09 -08:00
Juan Batiz-Benet
a2abf108a0
peerstream update
...
peerstream was updated to use pluggable transports, including
muxado. The interface was also simplified slightly.
2015-01-01 07:05:39 -08:00
Juan Batiz-Benet
5f603deecd
updated spdystream (lock)
2014-12-31 07:22:00 -08:00
Juan Batiz-Benet
0fe9f0603b
bugfix in spdystream
...
and updated go-peerstream
cc @whyrusleeping
2014-12-31 00:34:05 -08:00
Juan Batiz-Benet
5c2cc6089f
updated go-peerstream (close fix)
2014-12-28 04:05:57 -08:00
Juan Batiz-Benet
8b4c7cf34b
peerstream updated (data race)
2014-12-23 08:51:57 -08:00
Juan Batiz-Benet
1f59e18d36
whoops deps
2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
ba323c3e48
make vendor
2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
3b29653022
updated msgio + secio
2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
6944531026
updated msgio (bufixes)
2014-12-16 05:10:44 -08:00
Juan Batiz-Benet
62204fce65
added ctxgroup and router
2014-12-16 05:10:44 -08:00
Juan Batiz-Benet
aed70170dc
msgio proper write
2014-12-12 02:45:22 -08:00
Juan Batiz-Benet
477f5c8838
update msgio (combine)
2014-12-12 02:45:22 -08:00
Juan Batiz-Benet
6040a3efcc
make vendor (datastore fail??)
2014-12-08 20:53:31 -08:00
Juan Batiz-Benet
3db0da504f
updated leveldb
2014-12-06 16:22:10 -08:00
Juan Batiz-Benet
59c1ab2fc3
Merge pull request #406 from jbenet/new-msgio
...
updated msgio
2014-12-06 16:20:51 -08:00
Juan Batiz-Benet
97e0f73e79
msgio: updated to remove max size
2014-12-06 11:26:47 -05:00
Brian Tiger Chow
c40fe2af17
feat(blockstore) write cache
...
vendors hashicorp/golang-lru dependency. (Mozilla Public License, version 2.0)
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 23:31:01 -08:00
Brian Tiger Chow
fb5779661b
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>
2014-12-05 20:53:30 +00:00
Brian Tiger Chow
e393edcc28
Revert "hotfix(dep) duplicates TEMP DONT MERGE TO MASTER"
...
This reverts commit 49004e9743 .
2014-12-05 20:53:29 +00:00
Brian Tiger Chow
044db5bee8
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>
2014-12-05 20:53:29 +00:00
Christian Couder
9d7d02c21c
Update github.com/maybebtc/logrus dependency
...
This patch was generated by running:
$ godep update github.com/maybebtc/logrus
Without this, `godep restore` fails like this:
```
$ LANG=C godep restore
fatal: reference is not a tree: 005463f8fb49c4a6f36181e05157e111ec5cf8a3
godep: restore: exit status 128
```
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-25 06:44:46 +01:00
Juan Batiz-Benet
c90c16eee4
updated multiaddr + added utp
2014-11-20 09:14:48 -08:00
Juan Batiz-Benet
43452fdeb7
updated multiaddr + multiaddr-net
...
I broke out multiaddr/net to its own package so
that multiaddr parsing could remain lean. multiaddr-net
will vendor special implementations of protocols (like utp)
2014-11-20 00:58:48 -08:00
Brian Tiger Chow
884d629a56
deps(eventlog) no need to augment Logger
...
allow framework to add level to log so level can be applied when using
text formatter
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-17 00:44:18 -08:00
Brian Tiger Chow
5fa31f8e6c
deps(go-datastore) update
...
This commit updates go-datastore in order to access new LevelDb Close()
method
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-17 00:43:37 -08:00
Brian Tiger Chow
2d6b10f605
deps(eventlog) disable logrus' mutation of event keys
...
now, logrus does not automatically inject time, msg, level metadata
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 07:01:01 -08:00
Brian Tiger Chow
b03fbf73f5
deps(eventlog) use maybebtc fork
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 07:01:01 -08:00
Brian Tiger Chow
9a38b28416
deps(logging) vendor logrus (MIT)
...
Experimenting with LD JSON logging
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 07:00:59 -08:00
Juan Batiz-Benet
5a372f6996
vendor manners - for real this time
...
sorry everyone.
2014-11-15 22:24:13 -08:00
Brian Tiger Chow
e9131df344
deps(go-random)
...
fixes #293
https://github.com/jbenet/go-ipfs/issues/293
2014-11-15 02:10:52 -08:00
Brian Tiger Chow
9f798e86b2
fix(deps) transitive dependency was missing
...
programmer error
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 00:46:25 -08:00
Brian Tiger Chow
eb5bb1daa8
feat(debugerror)
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
impl errorf
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
return a debug error
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 17:04:48 -08:00
Juan Batiz-Benet
1e434ef3c4
vendor: updated random + fixed test import
...
There is a dummy test import: test/lib/random-dep.go
Because godep doen't yet vendor binaries nicely.
2014-11-08 20:12:02 -08:00
Juan Batiz-Benet
49f30b1597
added random to godeps
2014-11-08 18:49:01 -08:00
Juan Batiz-Benet
f0f202ed08
updated multiaddr
2014-11-05 02:31:23 -08:00
Jeromy
950957240a
address comments from PR
2014-11-01 16:07:56 -07:00
Jeromy
a8069024e9
cut down on allocations
2014-11-01 16:07:56 -07:00
Jeromy
f89cfc1108
moved pipes package
2014-11-01 16:07:56 -07:00
Jeromy
07733b17b3
msgio pooling first hack
2014-11-01 16:07:56 -07:00
Juan Batiz-Benet
210b5df78c
use my go-logging fork
...
until https://github.com/op/go-logging/pull/30 is merged
2014-10-25 03:43:17 -07:00
Juan Batiz-Benet
bd5a1c0c0f
Merge pull request #192 from jbenet/dhtfixes
...
dht fixes
2014-10-22 22:20:36 -07:00
Juan Batiz-Benet
54032ce38b
updated vendoring
2014-10-22 05:29:22 -07:00
Henry
deb9aebc48
vendor inconshreveable/go-update and it's deps
2014-10-22 11:24:34 +02:00
Jeromy
6458ddcd32
flesh out pinning object, needs tests and cli wiring still
2014-10-22 00:28:41 -07:00
Juan Batiz-Benet
f7c1ed39e0
renamed datastore.go -> go-datastore
2014-10-21 15:10:58 -07:00
Juan Batiz-Benet
4cb48da228
updated datastore
2014-10-21 03:30:41 -07:00
Henry
320ac339bb
checkin github.com/mitchellh/go-homedir"
2014-10-15 12:27:53 +02:00
Juan Batiz-Benet
917be90437
updated multiaddr for net pkg
2014-10-11 03:07:36 -07:00
Juan Batiz-Benet
726f53ff41
updated multiaddr
2014-10-10 20:43:04 -07:00
Juan Batiz-Benet
afec2d3d23
vendored go-semver
2014-10-09 20:01:49 -07:00
Juan Batiz-Benet
9ebf3ae640
keytransform ds
2014-10-08 14:33:31 -07:00
Juan Batiz-Benet
20a20c9e1a
updated multiaddr
2014-10-06 04:07:22 -07:00
Juan Batiz-Benet
d7d3af3faf
vendoring protobuf + go-is-domain
2014-10-05 15:15:49 -07:00
Juan Batiz-Benet
8a7f6aca99
godeps: updated datastore
2014-10-03 14:45:21 -07:00
Juan Batiz-Benet
f085d594aa
vendoring ipns things
2014-10-01 00:44:22 -07:00
verokarhu
4510977a4d
fix imports on mux
2014-09-30 22:59:55 +03:00
verokarhu
cf0100c97c
vendor github.com/gorilla dependencies
2014-09-30 22:59:55 +03:00
Juan Batiz-Benet
17f147eff8
vendor go-logging + camlistore/lock
2014-09-30 03:33:51 -07:00
Juan Batiz-Benet
34a0580ea6
godep multiaddr update
2014-09-22 04:05:19 -07:00
Brian Tiger Chow
455c6582f5
refactor(bitswap) leverage third-party pubsub lib
...
use a third-party pubsub library for internal communications
Insights:
* Within bitswap, the actors don't need anything more than simple pubsub
behavior. Wrapping and unwrapping messages proves unneccessary.
Changes:
* Simplifies the interface for both actors calling GetBlock and actors
receiving blocks on the network
* Leverages a well-tested third-party pubsub library
Design Goals:
* reduce complexity
* extract implementation details (wrapping and unwrapping data, etc)
from bitswap and let bitswap focus on composition of core algorithms
operations
2014-09-22 04:05:13 -07:00