From 647540f1e8f436df02c868d3bd092fc2097a92b5 Mon Sep 17 00:00:00 2001 From: "sanhuan.sw" Date: Fri, 19 Apr 2024 14:25:18 +0800 Subject: [PATCH] fix: fix error --- pkg/cri/cricore/nsenter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cri/cricore/nsenter.go b/pkg/cri/cricore/nsenter.go index dd8c81b..c217df6 100644 --- a/pkg/cri/cricore/nsenter.go +++ b/pkg/cri/cricore/nsenter.go @@ -7,6 +7,7 @@ package cricore import ( + "context" "errors" "github.com/traas-stack/holoinsight-agent/pkg/cri" "net" @@ -17,6 +18,6 @@ func NsEnterAndRunCodes(nsFile string, callback func()) error { return errors.New("unsupported") } -func NsEnterDial(c *cri.Container, network, addr string, timeout time.Duration) (net.Conn, error) { +func NsEnterDial(ctx context.Context, c *cri.Container, network, addr string, timeout time.Duration) (net.Conn, error) { return nil, errors.New("unsupported") }