1
0
mirror of https://github.com/json-iterator/go.git synced 2025-07-03 23:30:41 +02:00
This commit is contained in:
Tao Wen
2018-02-05 22:45:04 +08:00
parent 9edd73f752
commit 7990317be5
4 changed files with 5 additions and 6 deletions

View File

@ -25,7 +25,6 @@ func (cfg *frozenConfig) initCache() {
cfg.encoderCache = sync.Map{}
}
func (cfg *frozenConfig) addDecoderToCache(cacheKey reflect.Type, decoder ValDecoder) {
cfg.decoderCache.Store(cacheKey, decoder)
}
@ -62,4 +61,4 @@ func getFrozenConfigFromCache(cfg Config) *frozenConfig {
func addFrozenConfigToCache(cfg Config, frozenConfig *frozenConfig) {
cfgCache.Store(cfg, frozenConfig)
}
}