Skip to content

Commit

Permalink
Fix writer errors
Browse files Browse the repository at this point in the history
Signed-off-by: fpetkovski <filip.petkovsky@gmail.com>
  • Loading branch information
fpetkovski committed Nov 26, 2022
1 parent b002700 commit 0c6087b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ func (h *Handler) fanoutForward(pctx context.Context, tenant string, wreqs map[e
if !more {
for _, rerr := range seriesErrs {
if seriesReplicated {
errs.Add(rerr.Cause())
errs.Add(rerr.ErrOrNil())
} else {
cause := rerr.replicationErr(quorum)
errs.Add(errors.Wrapf(cause, rerr.Error()))
Expand Down
2 changes: 1 addition & 1 deletion pkg/receive/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,5 @@ func (r *Writer) Write(ctx context.Context, tenantID string, wreq *prompb.WriteR
if err := app.Commit(); err != nil {
errs.Add(errors.Wrap(err, "commit samples"))
}
return errs.Cause()
return errs.ErrOrNil()
}

0 comments on commit 0c6087b

Please sign in to comment.