mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
chore(peer_server): adjust code to make it more clear
This commit is contained in:
@@ -321,10 +321,10 @@ func (s *PeerServer) asyncRemove() {
|
||||
// TODO(yichengq): it should also call async stop for raft server,
|
||||
// but this functionality has not been implemented.
|
||||
go func() {
|
||||
defer s.Unlock()
|
||||
s.raftServer.Stop()
|
||||
s.routineGroup.Wait()
|
||||
close(s.removeNotify)
|
||||
s.Unlock()
|
||||
}()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user