1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 18:13:54 +08:00

2736 Commits

Author SHA1 Message Date
6e1c3b36bb fix(bitswap) check for nil in public interface 2014-09-22 04:06:15 -07:00
c80c8aa977 test(bitswap:testnet)
misc:
* test network client getting more than max
* test for find providers
* rename factory method
* local network
* misc test improvements
* test bitswap get block timeout
* test provider exists but cannot connect to peer
* test sending a message async over local network
2014-09-22 04:06:15 -07:00
7975ffe721 fix(exchange) package name 2014-09-22 04:06:15 -07:00
0c67019447 style(exch:bitswap) rename adapter, session, etc.
style(exch:bitswap) rename NetMessage adapter impl
2014-09-22 04:06:14 -07:00
071a66495f style(exch:bitswap) rename variable 2014-09-22 04:06:14 -07:00
71aed67413 feat(bitswap) broadcast block to routing, peers on receipt 2014-09-22 04:06:14 -07:00
98a6e9fac2 feat(exch:bitswap) simply get method 2014-09-22 04:06:14 -07:00
74e81e06fa refac(bitswap) extract const 2014-09-22 04:06:14 -07:00
9a18fd6354 chore(exch, bitswap) misc trivial cleanup 2014-09-22 04:06:14 -07:00
e907b2e03c feat(exchange) pass ctx to exchange.HasBlock(...) 2014-09-22 04:06:14 -07:00
1054b8d8ad fix(bitswap) use passed ctx 2014-09-22 04:06:14 -07:00
42770cc39a refac(exchange) replace timeout -> context in API 2014-09-22 04:06:14 -07:00
252be07ec5 refac(bitswap) let adapter be created with nil delegate
yay deleting code.
2014-09-22 04:06:14 -07:00
0bd8f2092b refac(routing) replace timeout -> ctx
@jbenet oh hai there!
2014-09-22 04:06:14 -07:00
81da645ed6 chore(bitswap) remove unused const 2014-09-22 04:06:14 -07:00
85f84fe446 refac(ex:bs) remove local peer ref until shown to be necessary 2014-09-22 04:06:13 -07:00
d82a2517d1 refac(exch:bitswap) always notify strategy when message sent 2014-09-22 04:06:13 -07:00
335b50f4c6 style(ex:bitswap) put public methods at top 2014-09-22 04:06:13 -07:00
5cec6197ae test(exch:bs:strategy) test accounting consistency
> Why expose num bytes sent and received?

    Makes it easy to test consistency of the ledgers

> Got a better reason?

    Makes it possible to expose metrics to the people-facing API
2014-09-22 04:06:13 -07:00
ded1f8f5a8 fix(bitswap) compiler errors
didn't run tests after the refactor. apologies.
2014-09-22 04:06:13 -07:00
e1fe4f6d60 refac(exchange) rename exchange.Interface to match golang conventions
examples:

    http://golang.org/pkg/container/heap/#Interface

    http://golang.org/pkg/net/#Interface

    http://golang.org/pkg/sort/#Interface
2014-09-22 04:06:13 -07:00
fd086b9c48 refac(exchange) bitswap -> exchange/bitswap
Move go-ipfs/bitswap package to go-ipfs/exchange/bitswap

* Delineates the difference between the generic exchange interface and
  implementations (eg. BitSwap protocol)

  Thus, the bitswap protocol can be refined without having to overthink
  how future exchanges will work. Aspects common to BitSwap and other
  exchanges can be extracted out to the exchange package in piecemeal.

  Future exchange implementations can be placed in sibling packages next
  to exchange/bitswap. (eg. exchange/multilateral)
2014-09-22 04:06:13 -07:00
79705729f8 style(bitswap) remove unnecessary interface 2014-09-22 04:06:13 -07:00
de9fcf5d12 style(bitswap) rename strategist -> strategy 2014-09-22 04:06:13 -07:00
b780694757 fix(bitswap) init wantlist
+ test that a partners wants are remembered by message receiver
2014-09-22 04:06:13 -07:00
be8e08675d fix(bitswap) implement, test concrete strategist 2014-09-22 04:06:13 -07:00
043c09e14b fixed get/put 2014-09-22 04:06:12 -07:00
9dd39de491 Fixed connections all over. 2014-09-22 04:06:12 -07:00
f7634611e6 secured net logs 2014-09-22 04:06:12 -07:00
1439a53b15 handshake: bugfix (secure -> insecure chan) + logs 2014-09-22 04:06:12 -07:00
f41817c8d3 use Alpha as the concurrency.
cc @whyrusleeping
2014-09-22 04:06:12 -07:00
de7af506b1 dht.Connect(Peer) 2014-09-22 04:06:12 -07:00
569268c676 peer.DecodePrettyID 2014-09-22 04:06:12 -07:00
d040104762 handshake: setting remote key expects it to match 2014-09-22 04:06:12 -07:00
4284e8e960 config: use PeerID in bootstrap config 2014-09-22 04:06:12 -07:00
9ea715cb10 comment out dht_test for now. 2014-09-22 04:06:10 -07:00
313f3c83c8 muxer construction 2014-09-22 04:05:23 -07:00
700b6ab99f remove start 2014-09-22 04:05:23 -07:00
7a785ded74 sync counter for processing things 2014-09-22 04:05:23 -07:00
25d0ce8fdd NoResponse service 2014-09-22 04:05:23 -07:00
69b1ce42d9 nil muxer 2014-09-22 04:05:23 -07:00
dc0fbfd3d3 added some logging 2014-09-22 04:05:23 -07:00
a114e9cd12 better query processing (runner) 2014-09-22 04:05:22 -07:00
98c3afeecf clean up channel use 2014-09-22 04:05:22 -07:00
b77a785cd8 fix(dht) remove deprecated Start() call 2014-09-22 04:05:22 -07:00
20802018a6 feat(bit swap) stub out a concrete strategist 2014-09-22 04:05:22 -07:00
22539cf6d0 fix(bitswap:strategy) move key set 2014-09-22 04:05:22 -07:00
b8133a4853 refac(bit swap) move ledger to strategy package 2014-09-22 04:05:22 -07:00
2d6e422f4a style(bitswap) sort in c'tor 2014-09-22 04:05:22 -07:00
36ce8a280b chore(bitswap) rm halt chan since bitswap has no daemon 2014-09-22 04:05:22 -07:00