From 5cbe92e88e838a36ca96a450a23a638250120780 Mon Sep 17 00:00:00 2001 From: Zechun Chen Date: Tue, 6 Feb 2024 11:06:33 +0800 Subject: [PATCH] Clean up repeated package import Signed-off-by: Zechun Chen --- cmd/ctr/commands/run/run_unix.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/ctr/commands/run/run_unix.go b/cmd/ctr/commands/run/run_unix.go index 8c1550256..3f48f9018 100644 --- a/cmd/ctr/commands/run/run_unix.go +++ b/cmd/ctr/commands/run/run_unix.go @@ -19,7 +19,6 @@ package run import ( - "context" gocontext "context" "errors" "fmt" @@ -465,7 +464,7 @@ func getNetNSPath(_ gocontext.Context, task containerd.Task) (string, error) { // This is used from the `run` command to avoid creating a registry with auto-refresh enabled. // It also provides a way to override the CDI spec file paths if required. func withStaticCDIRegistry() oci.SpecOpts { - return func(ctx context.Context, _ oci.Client, _ *containers.Container, s *oci.Spec) error { + return func(ctx gocontext.Context, _ oci.Client, _ *containers.Container, s *oci.Spec) error { registry := cdi.GetRegistry(cdi.WithAutoRefresh(false)) if err := registry.Refresh(); err != nil { // We don't consider registry refresh failure a fatal error.