mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
rafthttp: remove follower from leaderstats when it is removed from the cluster
This commit is contained in:
parent
d74e74d320
commit
58112c4d2d
@ -134,6 +134,7 @@ func (t *transport) RemovePeer(id types.ID) {
|
|||||||
defer t.mu.Unlock()
|
defer t.mu.Unlock()
|
||||||
t.peers[id].Stop()
|
t.peers[id].Stop()
|
||||||
delete(t.peers, id)
|
delete(t.peers, id)
|
||||||
|
delete(t.leaderStats.Followers, id.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *transport) UpdatePeer(id types.ID, urls []string) {
|
func (t *transport) UpdatePeer(id types.ID, urls []string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user