fix staticcheck failures of pkg/util/ipconfig pkg/util/iptables pkg/util/ipvs/testing

This commit is contained in:
SataQiu
2020-01-09 16:05:11 +08:00
parent 2c800c5a70
commit 51c742c1dd
4 changed files with 4 additions and 6 deletions

View File

@@ -432,7 +432,7 @@ func iptablesCommand(protocol Protocol) string {
}
func (runner *runner) run(op operation, args []string) ([]byte, error) {
return runner.runContext(nil, op, args)
return runner.runContext(context.TODO(), op, args)
}
func (runner *runner) runContext(ctx context.Context, op operation, args []string) ([]byte, error) {