Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix last cleanup timer
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsupermanhd committed Sep 19, 2024
1 parent 9dbfe15 commit 9ae5451
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func _ratelimitCleanup() {
maps.DeleteFunc(ratelimitChatData, func(k string, v *list.List) bool {
return _ratelimitPruneList(v, time.Hour)
})
ratelimitLastCleanup = time.Now()
}

func _ratelimitPruneList(l *list.List, ct time.Duration) bool {
Expand Down

0 comments on commit 9ae5451

Please sign in to comment.