Skip to content

Commit

Permalink
fix: fix error (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
sw1136562366 authored Apr 19, 2024
1 parent 2c02379 commit 3b36c57
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 3b36c57

Please sign in to comment.