Skip to content

Commit

Permalink
Fix bug that cleanup runs after every insert.
Browse files Browse the repository at this point in the history
Cleanup interval defaulted to 86400 nanoseconds instead of seconds.
  • Loading branch information
lukas-phaf committed Jan 12, 2024
1 parent 5636d9a commit 1eefa0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func initCleanupInterval() {
val = defaultVal
}

cleanupInterval = time.Duration(val)
cleanupInterval = time.Duration(val) * time.Second
}

func init() { // automatically called once on program startup (on first import of this package)
Expand Down

0 comments on commit 1eefa0b

Please sign in to comment.