Skip to content

Commit 34f1c4b

Browse files
committed
Updated with last changes in commons
1 parent f085f90 commit 34f1c4b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/splitio/go-client/v6
33
go 1.18
44

55
require (
6-
github.com/splitio/go-split-commons/v8 v8.0.1-0.20251120161359-a7eb977ebb64
6+
github.com/splitio/go-split-commons/v8 v8.0.1-0.20251121153142-2cbd8bd819b0
77
github.com/splitio/go-toolkit/v5 v5.4.1
88
github.com/stretchr/testify v1.11.1
99
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1818
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1919
github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvktgc=
2020
github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
21-
github.com/splitio/go-split-commons/v8 v8.0.1-0.20251120161359-a7eb977ebb64 h1:ZaFWAa4EkWecbxyduuvjkYxc6lOBxz6sRRZoiMwNFGc=
22-
github.com/splitio/go-split-commons/v8 v8.0.1-0.20251120161359-a7eb977ebb64/go.mod h1:vgRGPn0s4RC9/zp1nIn4KeeIEj/K3iXE2fxYQbCk/WI=
21+
github.com/splitio/go-split-commons/v8 v8.0.1-0.20251121153142-2cbd8bd819b0 h1:LfN3tj6Evy/G68GwjLh5Jtns7WaHs2t6KVO64xv5jVs=
22+
github.com/splitio/go-split-commons/v8 v8.0.1-0.20251121153142-2cbd8bd819b0/go.mod h1:vgRGPn0s4RC9/zp1nIn4KeeIEj/K3iXE2fxYQbCk/WI=
2323
github.com/splitio/go-toolkit/v5 v5.4.1 h1:srTyvDBJZMUcJ/KiiQDMyjCuELVgTBh2TGRVn0sOXEE=
2424
github.com/splitio/go-toolkit/v5 v5.4.1/go.mod h1:SifzysrOVDbzMcOE8zjX02+FG5az4FrR3Us/i5SeStw=
2525
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=

splitio/conf/sdkconf.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ type AdvancedConfig struct {
117117
FeatureFlagRules []string
118118
RuleBasedSegmentRules []string
119119
RetryEnabled bool
120-
FallbackTreatment *conf.FallbackTreatmentConf
120+
FallbackTreatment *dtos.FallbackTreatmentConfig
121121
}
122122

123123
// Default returns a config struct with all the default values
@@ -292,7 +292,7 @@ func Normalize(apikey string, cfg *SplitSdkConfig) error {
292292
return validConfigRates(cfg)
293293
}
294294

295-
func SanitizeGlobalFallbackTreatment(global *conf.FallbackTreatmentForConf, logger logging.LoggerInterface) *dtos.FallbackTreatment {
295+
func SanitizeGlobalFallbackTreatment(global *dtos.FallbackTreatment, logger logging.LoggerInterface) *dtos.FallbackTreatment {
296296
if global == nil {
297297
return nil
298298
}
@@ -306,7 +306,7 @@ func SanitizeGlobalFallbackTreatment(global *conf.FallbackTreatmentForConf, logg
306306
}
307307
}
308308

309-
func isValidTreatment(fallbackTreatment *conf.FallbackTreatmentForConf) bool {
309+
func isValidTreatment(fallbackTreatment *dtos.FallbackTreatment) bool {
310310
if fallbackTreatment == nil || fallbackTreatment.Treatment == nil {
311311
return false
312312
}
@@ -315,7 +315,7 @@ func isValidTreatment(fallbackTreatment *conf.FallbackTreatmentForConf) bool {
315315
return len(value) <= MaxTreatmentLength && pattern.MatchString(value)
316316
}
317317

318-
func SanitizeByFlagFallBackTreatment(byFlag map[string]conf.FallbackTreatmentForConf, logger logging.LoggerInterface) map[string]dtos.FallbackTreatment {
318+
func SanitizeByFlagFallBackTreatment(byFlag map[string]dtos.FallbackTreatment, logger logging.LoggerInterface) map[string]dtos.FallbackTreatment {
319319
sanitized := map[string]dtos.FallbackTreatment{}
320320
if len(byFlag) == 0 {
321321
return sanitized

0 commit comments

Comments
 (0)