code cleanup & refactoring

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2024-10-10 11:57:59 +02:00
parent 7d1a78cf9c
commit 0094d30378
52 changed files with 871 additions and 204 deletions
+1 -9
View File
@@ -76,15 +76,7 @@ func Server(cfg *config.Config) *cli.Command {
}
gr.Add(debugServer.ListenAndServe, func(err error) {
logger.Error().Err(err).Str("server", cfg.Service.Name).
Msg("Shutting down debug server")
if err := debugServer.Shutdown(context.Background()); err != nil {
logger.Error().
Err(err).
Str("server", cfg.Service.Name).
Msg("Error during debug server shutdown")
}
_ = debugServer.Shutdown(ctx)
cancel()
})