From 038393052cc2b4905573adaaf50dd57b752552e2 Mon Sep 17 00:00:00 2001 From: Tim Beatham Date: Thu, 4 Jan 2024 21:47:29 +0000 Subject: [PATCH] 81-seperate-synchronisation-into-independent-proc - build error --- pkg/mesh/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mesh/config.go b/pkg/mesh/config.go index ee070f4..0e1fa11 100644 --- a/pkg/mesh/config.go +++ b/pkg/mesh/config.go @@ -238,7 +238,7 @@ func (m *WgMeshConfigApplyer) getClientConfig(params *GetConfigParams) (*wgtypes }) }) - routesForMesh = lib.Filter(routesForMesh, func (rns []routeNode) { + routesForMesh = lib.Filter(routesForMesh, func(rns []routeNode) { return len(rns) != 0 }) @@ -456,7 +456,7 @@ func (m *WgMeshConfigApplyer) getAllRoutes() (map[string][]routeNode, error) { allRoutes := make(map[string][]routeNode) for _, mesh := range m.meshManager.GetMeshes() { - routes, err := m.getRoutes(mesh)2 + routes, err := m.getRoutes(mesh) if err != nil { return nil, err