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 16, 2024
1 parent 0dec2f0 commit ae71057
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 ae71057

Please sign in to comment.