mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raftexample: Implement ReportUnreachable and ReportSnapshot
This commit is contained in:
parent
73c50b869a
commit
2d25f7f3da
@ -484,6 +484,8 @@ func (rc *raftNode) serveRaft() {
|
||||
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) IsIDRemoved(id uint64) bool { return false }
|
||||
func (rc *raftNode) ReportUnreachable(id uint64) { rc.node.ReportUnreachable(id) }
|
||||
func (rc *raftNode) ReportSnapshot(id uint64, status raft.SnapshotStatus) {
|
||||
rc.node.ReportSnapshot(id, status)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user