Browse Source

Fix go routine leak in auto encrypt ca roots tracking

pull/8184/head
Matt Keeler 4 years ago
parent
commit
29d0cfdd7d
No known key found for this signature in database
GPG Key ID: 4DBAE1857E0081B
  1. 1
      agent/consul/server.go

1
agent/consul/server.go

@ -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…
Cancel
Save