fix lint issues and tests

This commit is contained in:
6543 2022-08-28 16:53:30 +02:00
parent dc023b81a8
commit ea13ac0e92
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
7 changed files with 27 additions and 33 deletions

View file

@ -146,8 +146,7 @@ func Serve(ctx *cli.Context) error {
// Start the web fastServer
log.Info().Msgf("Start listening on %s", listener.Addr())
http.Serve(listener, fastServer)
if err != nil {
if err := http.Serve(listener, fastServer); err != nil {
log.Panic().Err(err).Msg("Couldn't start fastServer")
}