Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
81fb6a73
Commit
81fb6a73
authored
Sep 21, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(bitswap) cleanup
parent
e38bef88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
testnet/routing.go
testnet/routing.go
+0
-7
No files found.
testnet/routing.go
View file @
81fb6a73
package
bitswap
import
(
"errors"
"math/rand"
"sync"
...
...
@@ -12,13 +11,10 @@ import (
)
type
RoutingServer
interface
{
// TODO
Announce
(
*
peer
.
Peer
,
u
.
Key
)
error
// TODO
Providers
(
u
.
Key
)
[]
*
peer
.
Peer
// TODO
// Returns a Routing instance configured to query this hash table
Client
(
*
peer
.
Peer
)
bsnet
.
Routing
}
...
...
@@ -34,8 +30,6 @@ type hashTable struct {
providers
map
[
u
.
Key
]
peer
.
Map
}
var
TODO
=
errors
.
New
(
"TODO"
)
func
(
rs
*
hashTable
)
Announce
(
p
*
peer
.
Peer
,
k
u
.
Key
)
error
{
rs
.
lock
.
Lock
()
defer
rs
.
lock
.
Unlock
()
...
...
@@ -68,7 +62,6 @@ func (rs *hashTable) Providers(k u.Key) []*peer.Peer {
return
ret
}
// TODO
func
(
rs
*
hashTable
)
Client
(
p
*
peer
.
Peer
)
bsnet
.
Routing
{
return
&
routingClient
{
peer
:
p
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment