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
ce22eba3
Unverified
Commit
ce22eba3
authored
Dec 20, 2018
by
Steven Allen
Committed by
GitHub
Dec 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37 from karalabe/fix-debug-logs
Fix debug log formatting issues
parents
18c401d8
eddd2b9d
Changes
1
Show 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 @
ce22eba3
...
@@ -205,7 +205,7 @@ func (bs *Bitswap) rebroadcastWorker(parent context.Context) {
...
@@ -205,7 +205,7 @@ func (bs *Bitswap) rebroadcastWorker(parent context.Context) {
case
<-
tick
.
C
:
case
<-
tick
.
C
:
n
:=
bs
.
wm
.
WantCount
()
n
:=
bs
.
wm
.
WantCount
()
if
n
>
0
{
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
case
<-
broadcastSignal
.
C
:
// resend unfulfilled wantlist keys
log
.
Event
(
ctx
,
"Bitswap.Rebroadcast.active"
)
log
.
Event
(
ctx
,
"Bitswap.Rebroadcast.active"
)
...
@@ -259,7 +259,7 @@ func (bs *Bitswap) providerQueryManager(ctx context.Context) {
...
@@ -259,7 +259,7 @@ func (bs *Bitswap) providerQueryManager(ctx context.Context) {
defer
wg
.
Done
()
defer
wg
.
Done
()
err
:=
bs
.
network
.
ConnectTo
(
child
,
p
)
err
:=
bs
.
network
.
ConnectTo
(
child
,
p
)
if
err
!=
nil
{
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
)
}(
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