diff --git a/orchestrator.go b/orchestrator.go index 8dcbfda..c666d26 100644 --- a/orchestrator.go +++ b/orchestrator.go @@ -5,7 +5,6 @@ import ( "log" "net" "slices" - "sort" "strconv" "time" ) @@ -16,7 +15,6 @@ func (mip *AbstractMulticast) AddUniqueAndSort(hier int64) { log.Println("Element already in the array:", hier) } else { mip.HierarchyArray = append(mip.HierarchyArray, hier) - sort.Slice(mip.HierarchyArray, func(i, j int) bool { return mip.HierarchyArray[i] < mip.HierarchyArray[j] }) log.Println("Here the numbers known:", mip.HierarchyArray) }