forgot to remove the waiting.
Dieser Commit ist enthalten in:
Ursprung
979ae0fbad
Commit
63c518f729
3
http.go
3
http.go
|
@ -94,10 +94,7 @@ func (s *Server) UseAuthBackend(a auth.AuthenticationHandler) {
|
||||||
|
|
||||||
// Stop Shuts the Server down
|
// Stop Shuts the Server down
|
||||||
func (s *Server) Stop(ctx context.Context) {
|
func (s *Server) Stop(ctx context.Context) {
|
||||||
go func() {
|
|
||||||
log.Info().Err(s.http.Shutdown(ctx)).Msg("Server Shut down.")
|
log.Info().Err(s.http.Shutdown(ctx)).Msg("Server Shut down.")
|
||||||
}()
|
|
||||||
<-ctx.Done()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Site is an Interface to abstract the modularized group of pages.
|
// Site is an Interface to abstract the modularized group of pages.
|
||||||
|
|
Laden…
In neuem Issue referenzieren