Skip to content

Commit

Permalink
Update networkpolicy.go
Browse files Browse the repository at this point in the history
Signed-off-by: Yuval Leibovich <[email protected]>
  • Loading branch information
yuleib authored Dec 28, 2023
1 parent 6249c15 commit 6e9ec75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/softwarecomposition/networkpolicy/networkpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func GenerateNetworkPolicy(networkNeighbors softwarecomposition.NetworkNeighbors
}

for _, neighborIngress := range networkNeighbors.Spec.Ingress {
wg.add(1)
wg.Add(1)
go func(neighborIngress softwarecomposition.NetworkNeighbor){
defer wg.Done()

Expand All @@ -79,7 +79,7 @@ func GenerateNetworkPolicy(networkNeighbors softwarecomposition.NetworkNeighbors
}

for _, neighborEgress := range networkNeighbors.Spec.Egress {
wg.add(1)
wg.Add(1)
go func(neighborEgress softwarecomposition.NetworkNeighbor){
defer wg.Done()

Expand Down

0 comments on commit 6e9ec75

Please sign in to comment.