etcdserver/api/v2stats/server.go
func (ss *ServerStats) SendAppendReq(reqSize int) {
	ss.Lock()
	defer ss.Unlock()

	ss.becomeLeader()

	ss.sendRateQueue.Insert(
		&RequestStats{
			SendingTime: time.Now(),
			Size:        reqSize,
		},
	)

	ss.SendAppendRequestCnt++
}
func (ss *ServerStats) SendAppendReq(reqSize int) {
	ss.Lock()
	defer ss.Unlock()

	ss.becomeLeader()

	ss.sendRateQueue.Insert(
		&RequestStats{
			SendingTime: time.Now(),
			Size:        reqSize,
		},
	)

	ss.SendAppendRequestCnt++
}
func ( ss * ServerStats ) SendAppendReq ( reqSize int ) { ss . Lock ( ) defer ss . Unlock ( ) ss . becomeLeader ( ) ss . sendRateQueue . Insert ( & RequestStats { SendingTime : time . Now ( ) , Size : reqSize , } , ) ss . SendAppendRequestCnt ++ }
// SendAppendReq updates the ServerStats in response to an AppendRequest
// being sent by this server
SendAppendReq updates the ServerStats in response to an AppendRequest being sent by this server