1
0
mirror of https://github.com/json-iterator/go.git synced 2025-04-20 11:28:49 +02:00

fix build on 1.8

This commit is contained in:
Tao Wen 2018-02-28 20:29:23 +08:00
parent 3353055b2a
commit d51e841de0

View File

@ -104,7 +104,7 @@ func (cfg *frozenConfig) getEncoderFromCache(cacheKey uintptr) ValEncoder {
return nil
}
var cfgCache = &sync.Map{}
var cfgCache = concurrent.NewMap()
func getFrozenConfigFromCache(cfg Config) *frozenConfig {
obj, found := cfgCache.Load(cfg)