From 53ba07e9b1ee28c9006028365f9e7e13ac960f44 Mon Sep 17 00:00:00 2001 From: Adam Bull Date: Mon, 7 Oct 2024 13:36:23 +0100 Subject: [PATCH] chore: naming --- internal/remote/sources.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/remote/sources.go b/internal/remote/sources.go index a2d39dfa..91d3b3a8 100644 --- a/internal/remote/sources.go +++ b/internal/remote/sources.go @@ -36,7 +36,7 @@ type RecentGeneration struct { const ( // The event stream contains multiple events for the same namespace, so we want to // break execution once we've seen a minimum, arbitrary number of unique namespaces. - minimumRecentGenerationsToShow int = 5 + recentGenerationsToShow int = 5 ) // GetRecentWorkspaceGenerations returns the most recent generations of targets in a workspace @@ -96,7 +96,7 @@ func GetRecentWorkspaceGenerations(ctx context.Context) ([]RecentGeneration, err Success: event.Success, }) - if len(seenUniqueNamespaces) >= minimumRecentGenerationsToShow { + if len(seenUniqueNamespaces) >= recentGenerationsToShow { break } }