raftexample: Implement ReportUnreachable and ReportSnapshot
@@ -485,5 +485,7 @@ func (rc *raftNode) Process(ctx context.Context, m raftpb.Message) error {
return rc.node.Step(ctx, m)
}
func (rc *raftNode) IsIDRemoved(id uint64) bool { return false }
-func (rc *raftNode) ReportUnreachable(id uint64) {}
-func (rc *raftNode) ReportSnapshot(id uint64, status raft.SnapshotStatus) {}
+func (rc *raftNode) ReportUnreachable(id uint64) { rc.node.ReportUnreachable(id) }
+func (rc *raftNode) ReportSnapshot(id uint64, status raft.SnapshotStatus) {
+ rc.node.ReportSnapshot(id, status)
+}
