Skip to content

Commit

Permalink
chore: fix conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Bart Smykla <[email protected]>
  • Loading branch information
bartsmykla committed Mar 29, 2024
1 parent 64a3713 commit c972690
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/transparentproxy/iptables/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,28 +166,17 @@ func restoreIPTablesWithRetry(
) (string, error) {
params := buildRestoreParameters(cfg, rulesFile, legacy)

<<<<<<< HEAD
for i := 0; i <= cfg.Retry.MaxRetries; i++ {
output, err := runRestoreCmd(cmdName, params)
=======
maxRetries := pointer.Deref(cfg.Retry.MaxRetries)
for i := 0; i <= maxRetries; i++ {
output, err := e.restore.exec(ctx, params...)
>>>>>>> 8f00873c8 (feat(transparent-proxy): add automatic iptables type detection (#9750))
if err == nil {
return output.String(), nil
}

_, _ = cfg.RuntimeStderr.Write([]byte(fmt.Sprintf(
"# [%d/%d] %s returned error: '%s'",
i+1,
<<<<<<< HEAD
cfg.Retry.MaxRetries+1,
strings.Join(append([]string{cmdName}, params...), " "),
=======
maxRetries+1,
strings.Join(append([]string{e.restore.path}, params...), " "),
>>>>>>> 8f00873c8 (feat(transparent-proxy): add automatic iptables type detection (#9750))
err.Error(),
)))

Expand Down

0 comments on commit c972690

Please sign in to comment.