From 2604347e8bc97a539dd0cd808468f7b538aeb6a3 Mon Sep 17 00:00:00 2001 From: Uriel Fanelli Date: Sun, 13 Aug 2023 00:03:49 +0200 Subject: [PATCH] Optimizing some bytes. --- orchestrator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestrator.go b/orchestrator.go index c666d26..79d36cf 100644 --- a/orchestrator.go +++ b/orchestrator.go @@ -12,11 +12,10 @@ import ( func (mip *AbstractMulticast) AddUniqueAndSort(hier int64) { if slices.Contains(mip.HierarchyArray, hier) { - log.Println("Element already in the array:", hier) + log.Println("Element already in the array: ", hier) } else { mip.HierarchyArray = append(mip.HierarchyArray, hier) log.Println("Here the numbers known:", mip.HierarchyArray) - } } @@ -132,6 +131,7 @@ func (b *AbstractBridge) WaitAndClean(entity AbstractMulticast) { // svuotare l'array e rifare le elezioni if !isActive(string(brIp.String())) { entity.HierarchyArray = entity.HierarchyArray[:0] + entity.HierarchyArray = slices.Clip(entity.HierarchyArray) } } }