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) { ...@@ -193,7 +193,10 @@ func (bs *bitswap) run(ctx context.Context) {
if unsent >= threshold { if unsent >= threshold {
// send wantlist to sendlist // 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 unsent = 0
timeout = time.After(rebroadcastTime) timeout = time.After(rebroadcastTime)
sendlist = nil 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