Skip to content

Commit

Permalink
fixes errors
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Feb 9, 2025
1 parent 256c469 commit 37fd157
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 159 deletions.
4 changes: 2 additions & 2 deletions internal/container/container_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ func (s *ContainerStore) ListContainers(labels ContainerLabels) ([]Container, er
}

containers := make([]Container, 0)
if filter.Exists() {
validContainers, err := s.client.ListContainers(s.ctx, filter)
if labels.Exists() {
validContainers, err := s.client.ListContainers(s.ctx, labels)
if err != nil {
return nil, err
}
Expand Down
156 changes: 0 additions & 156 deletions internal/container/stats_collector.go

This file was deleted.

2 changes: 1 addition & 1 deletion internal/docker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewClient(cli DockerCLI, host container.Host) *DockerClient {
}

// NewClientWithFilters creates a new instance of Client with docker filters
func NewLocalClient(hostname string) (container.Client, error) {
func NewLocalClient(hostname string) (*DockerClient, error) {
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation(), client.WithUserAgent("Docker-Client/Dozzle"))

if err != nil {
Expand Down

0 comments on commit 37fd157

Please sign in to comment.