Skip to content

Commit

Permalink
remove wrong error count
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Dec 12, 2024
1 parent 9cd5520 commit a07d656
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion internal/jimm/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,6 @@ func (j *JIMM) OpenFGACleanup(ctx context.Context) (err error) {
zapctx.Info(ctx, string(op))
durationObserver := servermon.DurationObserver(servermon.JimmMethodsDurationHistogram, string(op))
defer durationObserver()
defer servermon.ErrorCounter(servermon.DBQueryErrorCount, &err, string(op))
var (
continuationToken string
tuples []ofga.Tuple
Expand Down
1 change: 0 additions & 1 deletion internal/jimm/model_cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ func (j *JIMM) CleanupDyingModels(ctx context.Context) (err error) {
zapctx.Info(ctx, string(op))
durationObserver := servermon.DurationObserver(servermon.JimmMethodsDurationHistogram, string(op))
defer durationObserver()
defer servermon.ErrorCounter(servermon.DBQueryErrorCount, &err, string(op))

err = j.DB().ForEachModel(ctx, func(m *dbmodel.Model) error {
if m.Life != state.Dying.String() {
Expand Down

0 comments on commit a07d656

Please sign in to comment.