Commit 9f3de14a authored by Brian Tiger Chow's avatar Brian Tiger Chow

periodically print the number of keys in the wantlist (if any)

parent fe4f8ad2
......@@ -262,6 +262,11 @@ func (bs *bitswap) clientWorker(parent context.Context) {
for {
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
entries := bs.wantlist.Entries()
if len(entries) > 0 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment