remove RESTClient.Timeout

This commit is contained in:
Chao Xu
2015-11-04 16:48:24 -08:00
parent 0512d45986
commit ac0b7b5d3b
3 changed files with 1 additions and 13 deletions

View File

@@ -19,7 +19,6 @@ package main
import (
"fmt"
"runtime"
"time"
docker "github.com/fsouza/go-dockerclient"
@@ -72,9 +71,6 @@ func createClientFromFile(path string) (*client.Client, error) {
if err != nil {
return nil, fmt.Errorf("error while creating client: %v", err)
}
if client.Timeout == 0 {
client.Timeout = 30 * time.Second
}
return client, nil
}