Adds Cleanup method to safe.Pool
This commit is contained in:
parent
8ae9607d9b
commit
66e914a8ab
2 changed files with 15 additions and 5 deletions
|
@ -133,7 +133,7 @@ func (server *Server) Close() {
|
|||
}
|
||||
}(ctx)
|
||||
server.stopLeadership()
|
||||
server.routinesPool.Stop()
|
||||
server.routinesPool.Cleanup()
|
||||
close(server.configurationChan)
|
||||
close(server.configurationValidatedChan)
|
||||
signal.Stop(server.signals)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue