Skip to content

Commit

Permalink
Update obsreport/obsreport_exporter.go
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
  • Loading branch information
evan-bradley and dmitryax authored Apr 13, 2023
1 parent e5982b6 commit b9cfd95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obsreport/obsreport_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func toNumItems(numExportedItems int, err error) (int64, int64) {
if err != nil {
var permErr consumererror.Permanent
if errors.As(err, &permErr) { {
rejected := int64(e.Rejected())
rejected := int64(permErr.Rejected())
return int64(numExportedItems) - rejected, rejected
}
return 0, int64(numExportedItems)
Expand Down

0 comments on commit b9cfd95

Please sign in to comment.