update cleanupRoutine comment (#17102)

This commit is contained in:
jiuker 2023-04-28 16:11:51 +08:00 committed by GitHub
parent 5c83c9724f
commit 6e27264c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ func (l *logOnceType) logOnceIf(ctx context.Context, err error, id string, errKi
} }
} }
// Cleanup the map every 30 minutes so that the log message is printed again for the user to notice. // Cleanup the map every one hour so that the log message is printed again for the user to notice.
func (l *logOnceType) cleanupRoutine() { func (l *logOnceType) cleanupRoutine() {
for { for {
time.Sleep(time.Hour) time.Sleep(time.Hour)