MSP-5186 Update concatCluster param type

This commit is contained in:
Синельник Тимур Романович committed 2025-04-02 10:50:32 +03:00
1 parent 3b28cf7d08
commit 1ec17938e0
1 file changed
+2 -2
+2 -2
View File
@@ -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...)