remove return value from Close()

This commit is contained in:
aler9
2023-08-14 11:07:52 +02:00
parent e26ccf0858
commit 1a3e6ad092
6 changed files with 5 additions and 23 deletions

View File

@@ -318,12 +318,9 @@ func (s *Server) Start() error {
}
// Close closes all the server resources and waits for them to close.
func (s *Server) Close() error {
func (s *Server) Close() {
s.ctxCancel()
s.wg.Wait()
// TODO: remove return value in next major version
return s.closeError
}
// Wait waits until all server resources are closed.