提交 ef831268 作者: Brian Tiger Chow 提交者: Jeromy

fix(bitswap) handle error

@whyrusleeping

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 77696a47
......@@ -193,7 +193,10 @@ func (bs *bitswap) run(ctx context.Context) {
if unsent >= threshold {
// send wantlist to sendlist
bs.sendWantListTo(ctx, sendlist)
err := bs.sendWantListTo(ctx, sendlist)
if err != nil {
log.Errorf("error sending wantlist: %s", err)
}
unsent = 0
timeout = time.After(rebroadcastTime)
sendlist = nil
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论