cmd/dist: add global connect-timeout for GRPC

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2017-02-28 16:43:08 -08:00
parent 317b884110
commit d61d0b5aef
No known key found for this signature in database
GPG key ID: 67B3DED84EDC823F
3 changed files with 9 additions and 4 deletions

2
cmd/dist/fetch.go vendored
View file

@ -39,7 +39,7 @@ var fetchCommand = cli.Command{
},
Action: func(context *cli.Context) error {
var (
ctx = contextpkg.Background()
ctx = background
timeout = context.Duration("timeout")
locator = context.Args().First()
args = context.Args().Tail()