提交 6c2d799c 作者: Brian Tiger Chow

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

上级 49f2684c
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论