Skip to content

Commit

Permalink
fix(lb): removing extra frontends and backends resulted in segfault
Browse files Browse the repository at this point in the history
Signed-off-by: Aurelien GASTON <agaston@scaleway.com>
  • Loading branch information
Nox-404 committed Jan 12, 2024
1 parent e6f8769 commit ceb8b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scaleway/loadbalancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ func compareFrontends(got []*scwlb.Frontend, want map[int32]*scwlb.Frontend) fro
keep[target.InboundPort] = current
}
} else {
remove[target.InboundPort] = current
remove[current.InboundPort] = current
}
}

Expand Down Expand Up @@ -2007,7 +2007,7 @@ func compareBackends(got []*scwlb.Backend, want map[int32]*scwlb.Backend) backen
keep[target.ForwardPort] = current
}
} else {
remove[target.ForwardPort] = current
remove[current.ForwardPort] = current
}
}

Expand Down

0 comments on commit ceb8b59

Please sign in to comment.