Skip to content

Commit bafdeb2

Browse files
committed
READMEs updated to reflect extensible event sources
Signed-off-by: Ant Weiss <anton@otomato.io>
1 parent 6efd0ac commit bafdeb2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

internal/workflow/workflow_manager.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package workflow
33
import (
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
164162
func (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
}

0 commit comments

Comments
 (0)