diff --git a/orchestrator.go b/orchestrator.go index 8ce60fb..d421690 100644 --- a/orchestrator.go +++ b/orchestrator.go @@ -4,6 +4,7 @@ import ( "fmt" "log" "slices" + "strings" "time" ) @@ -30,7 +31,7 @@ func (mip *AbstractMulticast) IsAlpha(hier string) bool { alpha := mip.HierarchyArray[indexMax] log.Println("Maximum element is :", alpha) log.Println("Array is :", mip.HierarchyArray) - return alpha == hier + return strings.Compare(alpha, hier) == 0 }