From 627297ce7e86ce3124235c563f4b02531c7d4761 Mon Sep 17 00:00:00 2001 From: Saxon Date: Wed, 13 Mar 2019 12:25:57 +1030 Subject: [PATCH] revid: using chunk.WriteTo rather than chunk.Bytes to get data to encoders --- revid/revid.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index 3d8994d0..2ec5286b 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -462,12 +462,9 @@ loop: break loop } - // Get bytes from the chunk. - bytes := chunk.Bytes() - // Loop over encoders and hand bytes over to each one. - for _, enc := range r.encoder { - _, err := enc.Write(bytes) + for _, e := range r.encoder { + _, err := chunk.WriteTo(e) if err != nil { r.err <- err }