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-routing
Commits
ece27cae
Commit
ece27cae
authored
Nov 16, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(misc) address PR comments
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
310647fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
dht/dht.go
dht/dht.go
+0
-6
No files found.
dht/dht.go
View file @
ece27cae
...
...
@@ -152,10 +152,7 @@ func (dht *IpfsDHT) HandleMessage(ctx context.Context, mes msg.NetMessage) msg.N
// update the peer (on valid msgs only)
dht
.
Update
(
mPeer
)
// Print out diagnostic
log
.
Event
(
ctx
,
"foo"
,
dht
.
self
,
mPeer
,
pmes
)
log
.
Debugf
(
"%s got message type: '%s' from %s"
,
dht
.
self
,
pb
.
Message_MessageType_name
[
int32
(
pmes
.
GetType
())],
mPeer
)
// get handler for this msg type.
handler
:=
dht
.
handlerForMsgType
(
pmes
.
GetType
())
...
...
@@ -198,10 +195,7 @@ func (dht *IpfsDHT) sendRequest(ctx context.Context, p peer.Peer, pmes *pb.Messa
start
:=
time
.
Now
()
// Print out diagnostic
log
.
Event
(
ctx
,
"sentMessage"
,
dht
.
self
,
p
,
pmes
)
log
.
Debugf
(
"Sent message type: '%s' to %s"
,
pb
.
Message_MessageType_name
[
int32
(
pmes
.
GetType
())],
p
)
rmes
,
err
:=
dht
.
sender
.
SendRequest
(
ctx
,
mes
)
if
err
!=
nil
{
...
...
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