func mustUnmarshalState(d []byte) raftpb.HardState { var s raftpb.HardState if err := s.Unmarshal(d); err != nil { panic(err) } return s }