mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
add comment for HTTPTIMEOUT constant
This commit is contained in:
parent
8c76c97c9a
commit
c135c1e299
2
etcd.go
2
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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user