Procházet zdrojové kódy

Adding equals sign to the invalid config message

epsniff před 11 roky
rodič
revize
449c713de0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      config.go

+ 1 - 1
config.go

@@ -191,7 +191,7 @@ func (c *Config) Validate() error {
 	case c.Net.WriteTimeout <= 0:
 	case c.Net.WriteTimeout <= 0:
 		return ConfigurationError("Invalid Net.WriteTimeout, must be > 0")
 		return ConfigurationError("Invalid Net.WriteTimeout, must be > 0")
 	case c.Net.KeepAlive < 0:
 	case c.Net.KeepAlive < 0:
-		return ConfigurationError("Invalid Net.KeepAlive, must be > 0")
+		return ConfigurationError("Invalid Net.KeepAlive, must be >= 0")
 	}
 	}
 
 
 	// validate the Metadata values
 	// validate the Metadata values