Skip to content

Commit 0711e8a

Browse files
committed
fix: use non-deprecated type
1 parent 294587c commit 0711e8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/watch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/docker/docker/api/types"
1312
"github.com/docker/docker/api/types/container"
1413
"github.com/docker/docker/api/types/events"
1514
"github.com/docker/docker/api/types/filters"
1615
"github.com/docker/docker/client"
1716
"github.com/josegonzalez/cli-skeleton/command"
17+
"github.com/moby/moby/api/types"
1818
"github.com/posener/complete"
1919
"github.com/rs/zerolog"
2020
"github.com/rs/zerolog/log"
@@ -208,7 +208,7 @@ func watchEvents(ctx context.Context, sinceTimestamp int64) {
208208
filters.Arg("label", DOKKU_APP_LABEL),
209209
filters.Arg("label", DOKKU_PROCESS_TYPE_LABEL),
210210
)
211-
events, errors := dockerClient.Events(ctx, types.EventsOptions{
211+
events, errors := dockerClient.Events(ctx, events.ListOptions{
212212
Since: strconv.FormatInt(sinceTimestamp, 10),
213213
Filters: filters,
214214
})

0 commit comments

Comments
 (0)