Skip to content

Commit

Permalink
update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
sanzmauro committed Nov 26, 2024
1 parent 77d808c commit dad8ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion splitio/common/conf/advanced.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import (

// InitAdvancedOptions initializes an advanced config with default values + overriden urls.
func InitAdvancedOptions(proxy bool) *conf.AdvancedConfig {
advanced := conf.GetDefaultAdvancedConfig()

prefix := "SPLIT_SYNC_"
if proxy {
prefix = "SPLIT_PROXY_"
advanced.LargeSegment.Enable = true
}

advanced := conf.GetDefaultAdvancedConfig()
if envSdkURL := os.Getenv(prefix + "SDK_URL"); envSdkURL != "" {
advanced.SdkURL = envSdkURL
}
Expand Down
1 change: 0 additions & 1 deletion splitio/proxy/conf/sections.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func (m *Main) BuildAdvancedConfig() *cconf.AdvancedConfig {
tmp.StreamingEnabled = m.Sync.Advanced.StreamingEnabled
tmp.SplitsRefreshRate = int(m.Sync.SplitRefreshRateMs / 1000)
tmp.SegmentsRefreshRate = int(m.Sync.SegmentRefreshRateMs / 1000)
tmp.LargeSegment.Enable = true
return tmp
}

Expand Down

0 comments on commit dad8ca3

Please sign in to comment.