Commit c0decfc9 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

fix(bitswap) handle error

@whyrusleeping

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 40f3a6a6
......@@ -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 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