Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewTicker (0.19 sec)

  1. internal/config/identity/plugin/config.go

    	return true
    }
    
    var (
    	healthCheckInterval = 1 * time.Minute
    	healthCheckTimeout  = 5 * time.Second
    )
    
    func (o *AuthNPlugin) doPeriodicHealthCheck() {
    	ticker := time.NewTicker(healthCheckInterval)
    	defer ticker.Stop()
    
    	for {
    		select {
    		case <-ticker.C:
    			now := time.Now()
    			isConnected := o.checkConnectivity(o.shutdownCtx)
    			if isConnected {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.3K bytes
    - Viewed (3)
Back to top