Make linter happy.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-08-19 21:55:42 +05:00
parent 5fc6d3a181
commit 74035622f5

View File

@@ -58,13 +58,17 @@ func main() {
indexpage.New(app)
pastes.New(app)
app.Start()
if err := app.Start(); err != nil {
app.Log.Fatal().Err(err).Msg("Failed to start Fast Pastebin!")
}
go func() {
<-signalHandler
if err := app.Shutdown(); err != nil {
app.Log.Error().Err(err).Msg("Fast Pastebin failed to shutdown!")
}
shutdownDone <- true
}()