Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for max_sleep (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. cmd/data-scanner.go

    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if math.Abs(d.factor-factor) < 1e-10 && d.maxSleep == maxWait {
    		return nil
    	}
    	// Update values and cycle waiting.
    	xioutil.SafeClose(d.cycle)
    	d.factor = factor
    	d.maxSleep = maxWait
    	d.cycle = make(chan struct{})
    	return nil
    }
    
    const (
    	// ILMExpiry - audit trail for ILM expiry
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 45.5K bytes
    - Click Count (0)
  2. internal/rest/client.go

    }
    
    // computes the exponential backoff duration according to
    // https://www.awsarchitectureblog.com/2015/03/backoff.html
    func exponentialBackoffWait(r *rand.Rand, unit, maxSleep time.Duration) func(uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(attempt uint) time.Duration {
    		if attempt > 16 {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  3. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

                    }
    
                    final long minSleep = retryInterval + retryCount * 1000L;
                    final long maxSleep = retryInterval + retryCount * 2000L;
                    ThreadUtil.sleep(RandomUtils.nextLong(minSleep, maxSleep));
                    retryCount++;
                }
            }
        }
    
        /**
         * Destroys the client and closes connections.
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Nov 23 02:01:26 GMT 2025
    - 26.2K bytes
    - Click Count (0)
Back to Top