Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for dur (7.03 sec)

  1. internal/config/drive/drive.go

    	if d == "" {
    		d = env.Get("_MINIO_DRIVE_MAX_TIMEOUT", "")
    		if d == "" {
    			d = env.Get("_MINIO_DISK_MAX_TIMEOUT", "")
    		}
    	}
    
    	dur, _ := time.ParseDuration(d)
    	if dur < time.Second {
    		cfg.MaxTimeout = 30 * time.Second
    	} else {
    		cfg.MaxTimeout = getMaxTimeout(dur)
    	}
    	return cfg, err
    }
    
    func getMaxTimeout(t time.Duration) time.Duration {
    	if t < time.Second {
    		// get default value
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top