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
eddd2b9d
Unverified
Commit
eddd2b9d
authored
Dec 12, 2018
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix debug log formatting issues
parent
c9b0a134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
workers.go
workers.go
+2
-2
No files found.
workers.go
View file @
eddd2b9d
...
...
@@ -205,7 +205,7 @@ func (bs *Bitswap) rebroadcastWorker(parent context.Context) {
case
<-
tick
.
C
:
n
:=
bs
.
wm
.
WantCount
()
if
n
>
0
{
log
.
Debug
(
n
,
"
keys in bitswap wantlist"
)
log
.
Debug
f
(
"%d
keys in bitswap wantlist"
,
n
)
}
case
<-
broadcastSignal
.
C
:
// resend unfulfilled wantlist keys
log
.
Event
(
ctx
,
"Bitswap.Rebroadcast.active"
)
...
...
@@ -259,7 +259,7 @@ func (bs *Bitswap) providerQueryManager(ctx context.Context) {
defer
wg
.
Done
()
err
:=
bs
.
network
.
ConnectTo
(
child
,
p
)
if
err
!=
nil
{
log
.
Debug
(
"failed to connect to provider %s: %s"
,
p
,
err
)
log
.
Debug
f
(
"failed to connect to provider %s: %s"
,
p
,
err
)
}
}(
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