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
9f3de14a
Commit
9f3de14a
authored
Jan 20, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
periodically print the number of keys in the wantlist (if any)
parent
fe4f8ad2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
bitswap.go
bitswap.go
+5
-0
No files found.
bitswap.go
View file @
9f3de14a
...
@@ -262,6 +262,11 @@ func (bs *bitswap) clientWorker(parent context.Context) {
...
@@ -262,6 +262,11 @@ func (bs *bitswap) clientWorker(parent context.Context) {
for
{
for
{
select
{
select
{
case
<-
time
.
Tick
(
10
*
time
.
Second
)
:
n
:=
bs
.
wantlist
.
Len
()
if
n
>
0
{
log
.
Debugf
(
"%d keys in bitswap wantlist..."
,
n
)
}
case
<-
broadcastSignal
:
// resend unfulfilled wantlist keys
case
<-
broadcastSignal
:
// resend unfulfilled wantlist keys
entries
:=
bs
.
wantlist
.
Entries
()
entries
:=
bs
.
wantlist
.
Entries
()
if
len
(
entries
)
>
0
{
if
len
(
entries
)
>
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