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
d4c819e9
Commit
d4c819e9
authored
Nov 12, 2014
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log -> logf
parent
1bde67dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
exchange/bitswap/bitswap.go
exchange/bitswap/bitswap.go
+1
-1
routing/dht/routing.go
routing/dht/routing.go
+1
-1
No files found.
exchange/bitswap/bitswap.go
View file @
d4c819e9
...
@@ -114,7 +114,7 @@ func (bs *bitswap) Block(parent context.Context, k u.Key) (*blocks.Block, error)
...
@@ -114,7 +114,7 @@ func (bs *bitswap) Block(parent context.Context, k u.Key) (*blocks.Block, error)
response
,
err
:=
bs
.
sender
.
SendRequest
(
ctx
,
p
,
message
)
response
,
err
:=
bs
.
sender
.
SendRequest
(
ctx
,
p
,
message
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Error
(
"Error sender.SendRequest(%s) = %s"
,
p
,
err
)
log
.
Error
f
(
"Error sender.SendRequest(%s) = %s"
,
p
,
err
)
return
return
}
}
// FIXME ensure accounting is handled correctly when
// FIXME ensure accounting is handled correctly when
...
...
routing/dht/routing.go
View file @
d4c819e9
...
@@ -162,7 +162,7 @@ func (dht *IpfsDHT) addPeerListAsync(ctx context.Context, k u.Key, peers []*pb.M
...
@@ -162,7 +162,7 @@ func (dht *IpfsDHT) addPeerListAsync(ctx context.Context, k u.Key, peers []*pb.M
// construct new peer
// construct new peer
p
,
err
:=
dht
.
ensureConnectedToPeer
(
ctx
,
mp
)
p
,
err
:=
dht
.
ensureConnectedToPeer
(
ctx
,
mp
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Error
(
"%s"
,
err
)
log
.
Error
f
(
"%s"
,
err
)
return
return
}
}
if
p
==
nil
{
if
p
==
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