Skip to content

Commit

Permalink
Silence revive warning
Browse files Browse the repository at this point in the history
```
pkg/runner/runner.go:37:2: blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
```

As pprof is used for profiling the runner code it seems unnecessary to
move it to another package (main) for now.
  • Loading branch information
eest committed Sep 23, 2024
1 parent b4bdb1c commit 317a466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runner/runner.go
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ import (
"github.com/dnstapir/edm/pkg/protocols"
"github.com/eclipse/paho.golang/autopaho"
"github.com/fsnotify/fsnotify"
_ "github.com/grafana/pyroscope-go/godeltaprof/http/pprof"
_ "github.com/grafana/pyroscope-go/godeltaprof/http/pprof" // revive linter: keep blank import close to where it is used for now.
lru "github.com/hashicorp/golang-lru/v2"
"github.com/lestrrat-go/jwx/v2/jwk"
"github.com/miekg/dns"

0 comments on commit 317a466

Please sign in to comment.