Parcourir la source

add comment for HTTPTIMEOUT constant

Xiang Li il y a 12 ans
Parent
commit
c135c1e299
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      etcd.go

+ 2 - 0
etcd.go

@@ -91,6 +91,8 @@ const (
 	ELECTIONTIMTOUT  = 200 * time.Millisecond
 	ELECTIONTIMTOUT  = 200 * time.Millisecond
 	HEARTBEATTIMEOUT = 50 * time.Millisecond
 	HEARTBEATTIMEOUT = 50 * time.Millisecond
 	// Timeout for internal raft http connection
 	// Timeout for internal raft http connection
+	// The origin timeout for http is 45 seconds 
+	// which is too long for our usage.
  	HTTPTIMEOUT      = time.Second
  	HTTPTIMEOUT      = time.Second
 )
 )