Skip to content

Commit

Permalink
chore: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
adaam2 committed Nov 22, 2024
1 parent 98ea373 commit 53ba07e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/remote/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -96,7 +96,7 @@ func GetRecentWorkspaceGenerations(ctx context.Context) ([]RecentGeneration, err
Success: event.Success,
})

if len(seenUniqueNamespaces) >= minimumRecentGenerationsToShow {
if len(seenUniqueNamespaces) >= recentGenerationsToShow {
break
}
}
Expand Down

0 comments on commit 53ba07e

Please sign in to comment.