MSP-5186 Update concatCluster param type
This commit is contained in:
1 parent
3b28cf7d08
commit
1ec17938e0
1 file changed
+2
-2
+2
-2
@@ -29,7 +29,7 @@ func Handler(wrapper endpoint.Wrapper, c Controllers) *grpc.Mux {
|
||||
}
|
||||
|
||||
func endpointDescriptors(c Controllers) []cluster.EndpointDescriptor {
|
||||
return concatCluster([][]cluster.EndpointDescriptor{
|
||||
return concatCluster(
|
||||
secureCluster(c),
|
||||
accessListCluster(c),
|
||||
domainCluster(c),
|
||||
@@ -208,7 +208,7 @@ func tokenCluster(c Controllers) []cluster.EndpointDescriptor {
|
||||
}
|
||||
}
|
||||
|
||||
func concatCluster(clusters [][]cluster.EndpointDescriptor) []cluster.EndpointDescriptor {
|
||||
func concatCluster(clusters ...[]cluster.EndpointDescriptor) []cluster.EndpointDescriptor {
|
||||
var result []cluster.EndpointDescriptor
|
||||
for _, c := range clusters {
|
||||
result = append(result, c...)
|
||||
|
||||
Reference in new issue
Block a user