Skip to content

Commit

Permalink
fix: fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
sanhuan.sw committed Apr 19, 2024
1 parent 2c02379 commit 647540f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cri/cricore/nsenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
package cricore

import (
"context"
"errors"
"github.com/traas-stack/holoinsight-agent/pkg/cri"
"net"
Expand All @@ -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")
}

0 comments on commit 647540f

Please sign in to comment.