This commit is contained in:
Till Faelligen 2023-03-21 13:08:02 +01:00
parent b5789f24c0
commit e0096fe5d3
No known key found for this signature in database
GPG key ID: ACCDC9606D472758
2 changed files with 3 additions and 2 deletions

View file

@ -62,6 +62,7 @@ var (
instanceDir = flag.String("dir", ".", "the directory to store the databases in (if --config not specified)")
)
// nolint: gocyclo
func main() {
flag.Parse()
internal.SetupPprof()
@ -170,7 +171,7 @@ func main() {
if err != nil {
logrus.WithError(err).Panicf("failed to start opentracing")
}
defer closer.Close()
defer closer.Close() // nolint: errcheck
if cfg.Global.Sentry.Enabled {
logrus.Info("Setting up Sentry for debugging...")

View file

@ -114,7 +114,7 @@ func main() {
if err != nil {
logrus.WithError(err).Panicf("failed to start opentracing")
}
defer closer.Close()
defer closer.Close() // nolint: errcheck
// setup sentry
if cfg.Global.Sentry.Enabled {