Skip to content

Commit

Permalink
Update codec.go
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas Wiersma <nick@wiersma.co.za>
  • Loading branch information
adrianiacobghiula and nrwiersma committed Jun 25, 2024
1 parent 71eed55 commit afade95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func encoderOfType(e *encoderContext, schema Schema, typ reflect2.Type) ValEncod
case String, Bytes, Int, Long, Float, Double, Boolean, Null:
return createEncoderOfNative(schema, typ)
case Record:
key := cacheKey{fingerprint: schema.CacheFingerprint(), rtype: typ.RType()}
key := cacheKey{fingerprint: schema.Fingerprint(), rtype: typ.RType()}
defEnc := &deferEncoder{}
e.encoders[key] = defEnc
defEnc.encoder = createEncoderOfRecord(e, schema.(*RecordSchema), typ)
Expand Down

0 comments on commit afade95

Please sign in to comment.