Browse Source

add comment for HTTPTIMEOUT constant

Xiang Li 13 năm trước cách đây
mục cha
commit
c135c1e299
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      etcd.go

+ 2 - 0
etcd.go

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