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-dms3
Commits
d1df4095
Commit
d1df4095
authored
Feb 02, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: don't check routingbackend for value
parent
ca268b78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
routing/grandcentral/server.go
routing/grandcentral/server.go
+0
-11
No files found.
routing/grandcentral/server.go
View file @
d1df4095
...
...
@@ -168,17 +168,6 @@ func getRoutingProviders(local peer.ID, ds datastore.Datastore, k util.Key) ([]*
e
:=
log
.
EventBegin
(
context
.
Background
(),
"getProviders"
,
&
k
)
defer
e
.
Done
()
var
providers
[]
*
dhtpb
.
Message_Peer
exists
,
err
:=
ds
.
Has
(
k
.
DsKey
())
// TODO store values in a local datastore?
if
err
==
nil
&&
exists
{
pri
:=
[]
dhtpb
.
PeerRoutingInfo
{
dhtpb
.
PeerRoutingInfo
{
// Connectedness: TODO how is connectedness defined for the local node
PeerInfo
:
peer
.
PeerInfo
{
ID
:
local
},
},
}
providers
=
append
(
providers
,
dhtpb
.
PeerRoutingInfosToPBPeers
(
pri
)
...
)
}
pkey
:=
datastore
.
KeyWithNamespaces
([]
string
{
"routing"
,
"providers"
,
k
.
String
()})
// TODO key fmt
if
v
,
err
:=
ds
.
Get
(
pkey
);
err
==
nil
{
if
data
,
ok
:=
v
.
([]
byte
);
ok
{
...
...
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