rafthttp: remove follower from leaderstats when it is removed from the cluster

This commit is contained in:
Xiang Li 2015-02-10 11:20:12 -08:00
parent d74e74d320
commit 58112c4d2d

View File

@ -134,6 +134,7 @@ func (t *transport) RemovePeer(id types.ID) {
defer t.mu.Unlock()
t.peers[id].Stop()
delete(t.peers, id)
delete(t.leaderStats.Followers, id.String())
}
func (t *transport) UpdatePeer(id types.ID, urls []string) {