Explorar el Código

add comment for HTTPTIMEOUT constant

Xiang Li hace 12 años
padre
commit
ffa4d1a3c0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      etcd.go

+ 2 - 1
etcd.go

@@ -90,7 +90,8 @@ const (
 const (
 	ELECTIONTIMTOUT  = 200 * time.Millisecond
 	HEARTBEATTIMEOUT = 50 * time.Millisecond
-	HTTPTIMEOUT      = time.Second
+	// Timeout for internal raft http connection
+ 	HTTPTIMEOUT      = time.Second
 )
 
 //------------------------------------------------------------------------------