You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-08-13 22:12:45 +02:00
fix build on 1.8
This commit is contained in:
@@ -104,7 +104,7 @@ func (cfg *frozenConfig) getEncoderFromCache(cacheKey uintptr) ValEncoder {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var cfgCache = &sync.Map{}
|
var cfgCache = concurrent.NewMap()
|
||||||
|
|
||||||
func getFrozenConfigFromCache(cfg Config) *frozenConfig {
|
func getFrozenConfigFromCache(cfg Config) *frozenConfig {
|
||||||
obj, found := cfgCache.Load(cfg)
|
obj, found := cfgCache.Load(cfg)
|
||||||
|
Reference in New Issue
Block a user