Browse Source

fix build on 1.8

Tao Wen 7 years ago
parent
commit
d51e841de0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config.go

+ 1 - 1
config.go

@@ -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)