Skip to content

Commit 7f71583

Browse files
committed
Rename connection string
1 parent 27bb9ed commit 7f71583

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.evergreen/perfcomp/cmd/perfcomp/compare.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ func createComment(result perfcomp.CompareResult) string {
9292
}
9393

9494
func runCompare(cmd *cobra.Command, args []string, project string, perfContext string) error {
95-
perfAnalyzerConnString := os.Getenv("PERF_URI_PRIVATE_ENDPOINT")
95+
perfAnalyticsConnString := os.Getenv("PERF_URI_PRIVATE_ENDPOINT")
9696
version := args[len(args)-1]
9797

9898
ctx, cancel := context.WithTimeout(cmd.Context(), 5*time.Second)
9999
defer cancel()
100100

101-
res, err := perfcomp.Compare(ctx, version, perfAnalyzerConnString, project, perfContext)
101+
res, err := perfcomp.Compare(ctx, version, perfAnalyticsConnString, project, perfContext)
102102
if err != nil {
103103
log.Fatalf("failed to compare: %v", err)
104104
}

.evergreen/perfcomp/compare.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ const stableRegionsColl = "stable_regions"
116116

117117
// Compare will return statistical results for a patch version using the
118118
// stable region defined by the performance analytics cluster.
119-
func Compare(ctx context.Context, versionID string, perfAnalyzerConnString string, project string, perfContext string) (*CompareResult, error) {
119+
func Compare(ctx context.Context, versionID string, perfAnalyticsConnString string, project string, perfContext string) (*CompareResult, error) {
120120

121121
// Connect to analytics node
122-
client, err := mongo.Connect(options.Client().ApplyURI(perfAnalyzerConnString))
122+
client, err := mongo.Connect(options.Client().ApplyURI(perfAnalyticsConnString))
123123
if err != nil {
124124
return nil, fmt.Errorf("error connecting client: %v", err)
125125
}

0 commit comments

Comments
 (0)