Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
fix: race condition dockerclient
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Feb 7, 2024
1 parent f6f0261 commit 264197a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 108 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage.out
yakmv
107 changes: 0 additions & 107 deletions coverage.out

This file was deleted.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ func main() {

dockerClient, err := dockerclient.NewClientWithOpts(
dockerclient.FromEnv,
dockerclient.WithAPIVersionNegotiation(),
)
must(err)
dockerClient.NegotiateAPIVersion(ctx)

g := new(errgroup.Group)
g.Go(func() error {
Expand Down

0 comments on commit 264197a

Please sign in to comment.