Skip to content

Commit

Permalink
feat(cli): Add remove unused triggers with modification ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
kissken committed May 28, 2024
1 parent 601ba72 commit 4f7dd5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/cli/triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ func handleRemoveUnusedTriggersWithTTL(logger moira.Logger, database moira.Datab

func needTriggerToDelete(timestamp *int64, nowInSec, ttl int64) bool {
if timestamp != nil {
t := *timestamp
return t+ttl > nowInSec
return *timestamp+ttl > nowInSec
}

return false
Expand Down

0 comments on commit 4f7dd5c

Please sign in to comment.