Skip to content

Commit

Permalink
命名规范
Browse files Browse the repository at this point in the history
  • Loading branch information
njy17 committed Dec 1, 2023
1 parent f6a473d commit 862140c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apiserver/xdsserverv3/lds.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,16 +210,16 @@ func makeDefaultListener(trafficDirection corev3.TrafficDirection,
}

func makeListenersMatchDestinationPorts(option *resource.BuildOption) []uint32 {
var destination_ports []uint32
var destinationPorts []uint32
selfService := option.SelfService

selfServiceInfo, ok := option.Services[selfService]
if ok && len(selfServiceInfo.Ports) > 0 {
for _, i := range selfServiceInfo.Ports {
destination_ports = append(destination_ports, i.Port)
destinationPorts = append(destinationPorts, i.Port)
}
}
return destination_ports
return destinationPorts

}

Expand Down

0 comments on commit 862140c

Please sign in to comment.