mirror of https://github.com/status-im/consul.git
agent: handleEnterpriseLeave (#6453)
This commit is contained in:
parent
5096a2fe39
commit
4a20efda9b
|
@ -34,6 +34,10 @@ func (s *Server) handleEnterpriseRPCConn(rtype pool.RPCType, conn net.Conn, isTL
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *Server) handleEnterpriseLeave() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func (s *Server) enterpriseStats() map[string]map[string]string {
|
func (s *Server) enterpriseStats() map[string]map[string]string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -897,6 +897,9 @@ func (s *Server) Leave() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Leave everything enterprise related as well
|
||||||
|
s.handleEnterpriseLeave()
|
||||||
|
|
||||||
// Start refusing RPCs now that we've left the LAN pool. It's important
|
// Start refusing RPCs now that we've left the LAN pool. It's important
|
||||||
// to do this *after* we've left the LAN pool so that clients will know
|
// to do this *after* we've left the LAN pool so that clients will know
|
||||||
// to shift onto another server if they perform a retry. We also wake up
|
// to shift onto another server if they perform a retry. We also wake up
|
||||||
|
|
Loading…
Reference in New Issue