From 1ec17938e0a24f8d45f7a812796d356fee03f782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B8=D0=BD=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=20?= =?UTF-8?q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80=20=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=87?= Date: Wed, 2 Apr 2025 10:50:32 +0300 Subject: [PATCH] MSP-5186 Update concatCluster param type --- routes/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/routes.go b/routes/routes.go index baac098..8c4fd50 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -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...)