Browse Source

use constant

pull/7402/head
chrislu 1 month ago
parent
commit
eff82a8a66
  1. 4
      weed/filer/filer_deletion.go

4
weed/filer/filer_deletion.go

@ -30,6 +30,8 @@ const (
DeletionRetryBatchSize = 1000 DeletionRetryBatchSize = 1000
// Maximum number of error details to include in log messages // Maximum number of error details to include in log messages
MaxLoggedErrorDetails = 10 MaxLoggedErrorDetails = 10
// Interval for polling the deletion queue for new items
DeletionPollInterval = 1123 * time.Millisecond
) )
// DeletionRetryItem represents a file deletion that failed and needs to be retried // DeletionRetryItem represents a file deletion that failed and needs to be retried
@ -253,7 +255,7 @@ func (f *Filer) loopProcessingDeletion() {
// Start retry processor in a separate goroutine // Start retry processor in a separate goroutine
go f.loopProcessingDeletionRetry(lookupFunc, retryQueue) go f.loopProcessingDeletionRetry(lookupFunc, retryQueue)
ticker := time.NewTicker(1123 * time.Millisecond)
ticker := time.NewTicker(DeletionPollInterval)
defer ticker.Stop() defer ticker.Stop()
for { for {

Loading…
Cancel
Save