Skip to content

Commit

Permalink
use currListenerArns instead of addedListeners
Browse files Browse the repository at this point in the history
Signed-off-by: nnnkkk7 <[email protected]>
  • Loading branch information
nnnkkk7 committed Nov 19, 2023
1 parent 3c8d97f commit 87433db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/app/piped/executor/ecs/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,7 @@ func routing(ctx context.Context, in *executor.Input, platformProviderName strin
}

// Store created listeners to use later.
addedListeners := make([]string, 0, len(currListenerArns))
addedListeners = append(addedListeners, currListenerArns...)
metadata := strings.Join(addedListeners, ",")
metadata := strings.Join(currListenerArns, ",")
if err := in.MetadataStore.Shared().Put(ctx, currentListenersKey, metadata); err != nil {
in.LogPersister.Errorf("Unable to store created listeners to metadata store: %v", err)
return false
Expand Down

0 comments on commit 87433db

Please sign in to comment.