Skip to content

Commit a6db9b5

Browse files
committed
remove %s, already in the endpoint in fsc
1 parent f508b73 commit a6db9b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/optimizely/cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ func defaultLoader(
318318
// Configure CMAB prediction endpoint from environment variable
319319
// This allows FSC tests to override the endpoint by setting OPTIMIZELY_CMAB_PREDICTIONENDPOINT
320320
if cmabEndpoint := os.Getenv("OPTIMIZELY_CMAB_PREDICTIONENDPOINT"); cmabEndpoint != "" {
321-
// Set the global variable that go-sdk uses (same pattern as go-sdk FSC tests)
322-
cmab.CMABPredictionEndpoint = cmabEndpoint + "/%s"
321+
// Set the global variable that go-sdk uses (FSC already includes the /%s format)
322+
cmab.CMABPredictionEndpoint = cmabEndpoint
323323
log.Info().Str("endpoint", cmabEndpoint).Msg("Using custom CMAB prediction endpoint")
324324
}
325325

0 commit comments

Comments
 (0)