From afade95e04746af07dcecfaf8b8b2fdf8b3fbafa Mon Sep 17 00:00:00 2001 From: adrianiacobghiula <2491756+adrianiacobghiula@users.noreply.github.com> Date: Tue, 25 Jun 2024 08:19:35 +0200 Subject: [PATCH] Update codec.go Co-authored-by: Nicholas Wiersma --- codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec.go b/codec.go index 6aa2da0..e3ee42a 100644 --- a/codec.go +++ b/codec.go @@ -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)