Skip to content

Commit 79a3b20

Browse files
authored
Merge pull request containerd#9764 from Fish-pro/patch-1
Clean up repeated package import
2 parents 2f807b6 + 5cbe92e commit 79a3b20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/ctr/commands/run/run_unix.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package run
2020

2121
import (
22-
"context"
2322
gocontext "context"
2423
"errors"
2524
"fmt"
@@ -465,7 +464,7 @@ func getNetNSPath(_ gocontext.Context, task containerd.Task) (string, error) {
465464
// This is used from the `run` command to avoid creating a registry with auto-refresh enabled.
466465
// It also provides a way to override the CDI spec file paths if required.
467466
func withStaticCDIRegistry() oci.SpecOpts {
468-
return func(ctx context.Context, _ oci.Client, _ *containers.Container, s *oci.Spec) error {
467+
return func(ctx gocontext.Context, _ oci.Client, _ *containers.Container, s *oci.Spec) error {
469468
registry := cdi.GetRegistry(cdi.WithAutoRefresh(false))
470469
if err := registry.Refresh(); err != nil {
471470
// We don't consider registry refresh failure a fatal error.

0 commit comments

Comments
 (0)