mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 20:51:10 +00:00
Fix go routine leak in auto encrypt ca roots tracking
This commit is contained in:
parent
25a4f3c83b
commit
29d0cfdd7d
@ -640,6 +640,7 @@ func (s *Server) trackAutoEncryptCARoots() {
|
||||
ws := memdb.NewWatchSet()
|
||||
state := s.fsm.State()
|
||||
ws.Add(state.AbandonCh())
|
||||
ws.Add(s.shutdownCh)
|
||||
_, cas, err := state.CARoots(ws)
|
||||
if err != nil {
|
||||
s.logger.Error("Failed to watch AutoEncrypt CARoot", "error", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user