remove duplicate

Signed-off-by: Kang.Zhang <Kang.zhang@intel.com>
This commit is contained in:
Kang.Zhang 2022-04-26 10:44:45 +08:00
parent d91c4f214e
commit fceab7f4c4

View File

@ -35,7 +35,7 @@ import (
)
// WithNewSnapshot wraps `containerd.WithNewSnapshot` so that if creating the
// snapshot fails we make sure the image is actually unpacked and and retry.
// snapshot fails we make sure the image is actually unpacked and retry.
func WithNewSnapshot(id string, i containerd.Image, opts ...snapshots.Opt) containerd.NewContainerOpts {
f := containerd.WithNewSnapshot(id, i, opts...)
return func(ctx context.Context, client *containerd.Client, c *containers.Container) error {