Skip to content

Commit 6354a84

Browse files
committed
fix: example
1 parent 8b48ade commit 6354a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pull/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func main() {
3535
if err != nil {
3636
panic(err)
3737
}
38-
stateChan, err := cli.PullWithState(context.Background(), ref)
38+
stateChan, err := cli.ImagePullWithState(context.Background(), ref)
3939
if err != nil {
4040
panic(err)
4141
}
@@ -46,7 +46,7 @@ func main() {
4646
logger.Infof("%02d [%s]: %s", idx, l.Id(), l.Status())
4747
}
4848
}
49-
digest, err := cli.Pull(context.Background(), ref)
49+
digest, err := cli.ImagePull(context.Background(), ref)
5050
if err != nil {
5151
panic(err)
5252
}

0 commit comments

Comments
 (0)