Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetLock (0.15 sec)

  1. cmd/site-replication.go

    		}
    	}
    	return nil
    }
    
    const siteHealTimeInterval = 30 * time.Second
    
    func (c *SiteReplicationSys) startHealRoutine(ctx context.Context, objAPI ObjectLayer) {
    	ctx, cancel := globalLeaderLock.GetLock(ctx)
    	defer cancel()
    
    	healTimer := time.NewTimer(siteHealTimeInterval)
    	defer healTimer.Stop()
    
    	var maxRefreshDurationSecondsForLog float64 = 10 // 10 seconds..
    
    	for {
    		select {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
Back to top