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:
Akihiro Suda
2023-11-28 23:05:52 +09:00
parent 02e0fef84b
commit eb123db5fb
5 changed files with 10 additions and 10 deletions

View File

@@ -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