Make linter happy.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Stanislav Nikitin 2022-08-19 21:55:42 +05:00
parent 5fc6d3a181
commit 74035622f5
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
1 changed files with 5 additions and 1 deletions

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
}()