chore(bitswap) cleanup
Brian Tiger Chow committed
Sep 21, 2014 at 01:46 UTC
7d62be76adc86307d6d1431bae61e285683e5f6a
1 file changed
-7
exchange/bitswap/testnet/routing.go
-7
@@ -1,7 +1,6 @@
1
package bitswap
2
3
import (
4
- "errors"
4
"math/rand"
5
"sync"
6
@@ -12,13 +11,10 @@ import (
11
)
12
13
type RoutingServer interface {
15
- // TODO
14
Announce(*peer.Peer, u.Key) error
15
18
- // TODO
16
Providers(u.Key) []*peer.Peer
17
21
- // TODO
18
// Returns a Routing instance configured to query this hash table
19
Client(*peer.Peer) bsnet.Routing
20
}
@@ -34,8 +30,6 @@ type hashTable struct {
30
providers map[u.Key]peer.Map
31
}
32
37
-var TODO = errors.New("TODO")
38
-
33
func (rs *hashTable) Announce(p *peer.Peer, k u.Key) error {
34
rs.lock.Lock()
35
defer rs.lock.Unlock()
@@ -68,7 +62,6 @@ func (rs *hashTable) Providers(k u.Key) []*peer.Peer {
62
return ret
63
}
64
71
-// TODO
65
func (rs *hashTable) Client(p *peer.Peer) bsnet.Routing {
66
return &routingClient{
67
peer: p,