Skip to content

Commit

Permalink
fix more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiotr committed Mar 26, 2024
1 parent e33008b commit 7b405c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"github.com/prometheus/client_golang/prometheus"
collectorversion "github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/common/version"
)

Expand Down Expand Up @@ -34,7 +35,7 @@ func injectVersion() {
func NewCollector(program string) prometheus.Collector {
injectVersion()

return version.NewCollector(program)
return collectorversion.NewCollector(program)
}

// Print returns version information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"sync"
"time"

docker_types "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/stdcopy"
"github.com/go-kit/log"
Expand Down Expand Up @@ -94,7 +94,7 @@ func (t *Target) processLoop(ctx context.Context) {
t.wg.Add(1)
defer t.wg.Done()

opts := docker_types.ContainerLogsOptions{
opts := container.LogsOptions{
ShowStdout: true,
ShowStderr: true,
Follow: true,
Expand Down

0 comments on commit 7b405c3

Please sign in to comment.