etcdserver/config.go
func (c *ServerConfig) ReqTimeout() time.Duration {
	// 5s for queue waiting, computation and disk IO delay
	// + 2 * election timeout for possible leader election
	return 5*time.Second + 2*time.Duration(c.ElectionTicks*int(c.TickMs))*time.Millisecond
}
func (c *ServerConfig) ReqTimeout() time.Duration {
	// 5s for queue waiting, computation and disk IO delay
	// + 2 * election timeout for possible leader election
	return 5*time.Second + 2*time.Duration(c.ElectionTicks*int(c.TickMs))*time.Millisecond
}
func ( c * ServerConfig ) ReqTimeout ( ) time . Duration { // 5s for queue waiting, computation and disk IO delay // + 2 * election timeout for possible leader election return 5 * time . Second + 2 * time . Duration ( c . ElectionTicks * int ( c . TickMs ) ) * time . Millisecond }
// ReqTimeout returns timeout for request to finish.
ReqTimeout returns timeout for request to finish .