Skip to content

Commit

Permalink
fix(pusher): non-fatal tag error
Browse files Browse the repository at this point in the history
  • Loading branch information
acud committed Oct 5, 2021
1 parent 853737d commit 1df9263
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/pusher/pusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,22 @@ LOOP:
if err == nil && t != nil {
err = t.Inc(tags.StateSynced)
if err != nil {
err = fmt.Errorf("pusher: increment synced: %v", err)
err = fmt.Errorf("increment synced: %v", err)
logger.Tracef("pusher: chunk %s tag error: %v", ch.Address().String(), err)
err = nil
return
}
if wantSelf {
err = t.Inc(tags.StateSent)
if err != nil {
err = fmt.Errorf("pusher: increment sent: %w", err)
err = fmt.Errorf("increment sent: %v", err)
logger.Tracef("pusher: chunk %s tag error: %v", ch.Address().String(), err)
err = nil
return
}
}
} else {
err = nil // don't fail because of a tag error
}
}

Expand Down

0 comments on commit 1df9263

Please sign in to comment.