ctr: use transfer service by default
Prior to this commit, `--local=false` had to be explicitly specified to opt-in to the transfer service Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -79,7 +79,7 @@ command. As part of this process, we do the following:
|
||||
Name: "max-concurrent-downloads",
|
||||
Usage: "Set the max concurrent downloads for each pull",
|
||||
},
|
||||
cli.BoolTFlag{
|
||||
cli.BoolFlag{
|
||||
Name: "local",
|
||||
Usage: "Fetch content from local client rather than using transfer service",
|
||||
},
|
||||
@@ -98,7 +98,7 @@ command. As part of this process, we do the following:
|
||||
}
|
||||
defer cancel()
|
||||
|
||||
if !context.BoolT("local") {
|
||||
if !context.Bool("local") {
|
||||
ch, err := commands.NewStaticCredentials(ctx, context, ref)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user