Пример #1
0
func mustUnmarshalState(d []byte) raftpb.State {
	var s raftpb.State
	if err := s.Unmarshal(d); err != nil {
		panic(err)
	}
	return s
}