etcdserver/api/v3rpc/header.go
func (h *header) fill(rh *pb.ResponseHeader) {
	if rh == nil {
		plog.Panic("unexpected nil resp.Header")
	}
	rh.ClusterId = uint64(h.clusterID)
	rh.MemberId = uint64(h.memberID)
	rh.RaftTerm = h.sg.Term()
	if rh.Revision == 0 {
		rh.Revision = h.rev()
	}
}
func (h *header) fill(rh *pb.ResponseHeader) {
	if rh == nil {
		plog.Panic("unexpected nil resp.Header")
	}
	rh.ClusterId = uint64(h.clusterID)
	rh.MemberId = uint64(h.memberID)
	rh.RaftTerm = h.sg.Term()
	if rh.Revision == 0 {
		rh.Revision = h.rev()
	}
}
func ( h * header ) fill ( rh * pb . ResponseHeader ) { if rh == nil { plog . Panic ( " " ) } rh . ClusterId = uint64 ( h . clusterID ) rh . MemberId = uint64 ( h . memberID ) rh . RaftTerm = h . sg . Term ( ) if rh . Revision == 0 { rh . Revision = h . rev ( ) } }
// fill populates pb.ResponseHeader using etcdserver information
fill populates pb . ResponseHeader using etcdserver information