From 87433dbe215e26d4dd73e3672fe516a3cd46dc45 Mon Sep 17 00:00:00 2001 From: nnnkkk7 Date: Sun, 19 Nov 2023 12:48:15 +0900 Subject: [PATCH] use currListenerArns instead of addedListeners Signed-off-by: nnnkkk7 --- pkg/app/piped/executor/ecs/ecs.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/app/piped/executor/ecs/ecs.go b/pkg/app/piped/executor/ecs/ecs.go index d25845d86a..bfbaaddaae 100644 --- a/pkg/app/piped/executor/ecs/ecs.go +++ b/pkg/app/piped/executor/ecs/ecs.go @@ -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