File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package workflow
33import (
44 "context"
55 "fmt"
6- "sort"
76 "strings"
87
98 "github.com/go-logr/logr"
@@ -159,8 +158,7 @@ func (wm *WorkflowManager) externalSourcesForHooks(hooks []*kagentv1alpha2.Hook)
159158 return out
160159}
161160
162- // CalculateSignature creates a signature for hook changes detection.
163- // The signature is deterministic regardless of the order hooks are returned from the API.
161+ // CalculateSignature creates a signature for hook changes detection
164162func (wm * WorkflowManager ) CalculateSignature (hooks []* kagentv1alpha2.Hook ) string {
165163 parts := make ([]string , 0 , len (hooks ))
166164 for _ , h := range hooks {
@@ -179,11 +177,7 @@ func (wm *WorkflowManager) CalculateSignature(hooks []*kagentv1alpha2.Hook) stri
179177 }
180178 }
181179 }
182- // Sort configurations within each hook for deterministic ordering
183- sort .Strings (cfgs )
184180 parts = append (parts , h .Namespace + "/" + h .Name + "@" + strings .Join (cfgs , ";" ))
185181 }
186- // Sort hook parts to ensure deterministic ordering regardless of API return order
187- sort .Strings (parts )
188182 return strings .Join (parts , "," )
189183}
You can’t perform that action at this time.
0 commit comments