@maybebtc the error was not inside mocknet. the error is in
assuming the peers / nets returned follow the same order.
See:
- https://github.com/jbenet/go-ipfs/blob/master/epictest/addcat_test.go#L100
- https://gist.github.com/jbenet/a39bb9d2f16532a03bb8
if you want the results to be sorted by peer.ID before they
are returned, we can totally do that, but that's probably an
unsafe assumption to make in general-- if you do your
initialization async, the number of networks or peers may have
changed between the two calls. LMK what you prefer.
(thank you golang map chaosmonkey ;)
pprof cannot be used reliably on OS X. This provides two make tasks to
collect and analyze profiling data.
To run profiling in a dockerized linux environment...
```
make // or `make collect`
```
To analyze results on host machine...
```
make analyze
```
@jbenet @whyrusleeping
@whyrusleeping @jbenet this is a WIP with the DHT.
wip
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Conflicts:
epictest/addcat_test.go
exchange/bitswap/testnet/peernet.go
exchange/bitswap/testutils.go
routing/mock/centralized_server.go
routing/mock/centralized_test.go
routing/mock/interface.go
fix(routing/mock) fill in function definition
routing interface doesn't wait for value to appear in network, but value
doesn't appear in network until time as passed
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>