Details
-
Bug
-
Resolution: Duplicate
-
Unknown
-
None
-
1.13.0
-
None
Description
Detailed steps to reproduce the problem?
Call typeEncoderCache.LoadOrStore twice will panic when enc is nil.
enc = v.(ValueEncoder) should be enc, _ = v.(ValueEncoder)
|
_func (c *typeEncoderCache) LoadOrStore(rt reflect.Type, enc ValueEncoder) ValueEncoder {
if v, loaded := c.cache.LoadOrStore(rt, enc); loaded
return enc
}_
Attachments
Issue Links
- duplicates
-
GODRIVER-3051 Panic when decoding is done concurrently
-
- Closed
-