Revert "fix: drop copy/pasta, keep timeouts"

This reverts commit a170e26e27.

Attempting to add more nuanced timeout logic.
This commit is contained in:
2021-11-02 15:18:17 +01:00
parent c76601c9ce
commit fc2deda1f6
4 changed files with 382 additions and 38 deletions

View File

@ -6,7 +6,6 @@ import (
"os"
"time"
"github.com/docker/cli/cli/connhelper"
"github.com/docker/docker/client"
"github.com/sirupsen/logrus"
)
@ -59,11 +58,3 @@ func New(contextName string) (*client.Client, error) {
return cl, nil
}
func newConnectionHelper(daemonURL string) *connhelper.ConnectionHelper {
helper, err := connhelper.GetConnectionHelper(daemonURL)
if err != nil {
logrus.Fatal(err)
}
return helper
}