Skip to content

Commit

Permalink
fix: use non-deprecated type
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Mar 6, 2025
1 parent 294587c commit 0711e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"strings"
"time"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/client"
"github.com/josegonzalez/cli-skeleton/command"
"github.com/moby/moby/api/types"
"github.com/posener/complete"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
Expand Down Expand Up @@ -208,7 +208,7 @@ func watchEvents(ctx context.Context, sinceTimestamp int64) {
filters.Arg("label", DOKKU_APP_LABEL),
filters.Arg("label", DOKKU_PROCESS_TYPE_LABEL),
)
events, errors := dockerClient.Events(ctx, types.EventsOptions{
events, errors := dockerClient.Events(ctx, events.ListOptions{
Since: strconv.FormatInt(sinceTimestamp, 10),
Filters: filters,
})
Expand Down

0 comments on commit 0711e8a

Please sign in to comment.