Skip to content

Commit

Permalink
remove context
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Dec 6, 2024
1 parent f29457e commit 7400a84
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/jimm/model_cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ func (j *JIMM) CleanupDyingModels(ctx context.Context) error {
const op = errors.Op("jimm.CleanupDyingModels")
zapctx.Info(ctx, string(op))

ctx, cancel := context.WithCancel(ctx)
defer cancel()

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

0 comments on commit 7400a84

Please sign in to comment.