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
p2p
go-p2p-kad-dht
Commits
024c67ae
Commit
024c67ae
authored
Mar 26, 2018
by
ForrestWeston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix loggable collision on peer and target
License: MIT Signed-off-by:
ForrestWeston
<
forrest@protocol.ai
>
parent
bae77cc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dht.go
dht.go
+5
-1
No files found.
dht.go
View file @
024c67ae
...
...
@@ -283,7 +283,11 @@ func (dht *IpfsDHT) FindLocal(id peer.ID) pstore.PeerInfo {
// findPeerSingle asks peer 'p' if they know where the peer with id 'id' is
func
(
dht
*
IpfsDHT
)
findPeerSingle
(
ctx
context
.
Context
,
p
peer
.
ID
,
id
peer
.
ID
)
(
*
pb
.
Message
,
error
)
{
eip
:=
log
.
EventBegin
(
ctx
,
"findPeerSingle"
,
p
,
id
)
eip
:=
log
.
EventBegin
(
ctx
,
"findPeerSingle"
,
logging
.
LoggableMap
{
"peer"
:
p
,
"target"
:
id
,
})
defer
eip
.
Done
()
pmes
:=
pb
.
NewMessage
(
pb
.
Message_FIND_NODE
,
string
(
id
),
0
)
...
...
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