Fix error handling (#2316)

This commit is contained in:
Zoltan Papp
2024-07-24 13:27:01 +02:00
committed by GitHub
parent 268e801ec5
commit 63aeeb834d
2 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ var (
return err
}
metricsServer := metrics.NewServer(metricsPort, "")
metricsServer, err := metrics.NewServer(metricsPort, "")
if err != nil {
return fmt.Errorf("setup metrics: %v", err)
}