From 90944bb1a2f33cf68b9e464769071b89cb47030e Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Thu, 7 Dec 2017 11:45:50 -0600 Subject: [PATCH] be specific about what type we're encoding to be consistent with Decode, which returns TimedWALMessage --- consensus/wal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/wal.go b/consensus/wal.go index 4ee4c09b0..5ac605d0c 100644 --- a/consensus/wal.go +++ b/consensus/wal.go @@ -191,7 +191,7 @@ func NewWALEncoder(wr io.Writer) *WALEncoder { } // Encode writes the custom encoding of v to the stream. -func (enc *WALEncoder) Encode(v interface{}) error { +func (enc *WALEncoder) Encode(v *TimedWALMessage) error { data := wire.BinaryBytes(v) crc := crc32.Checksum(data, crc32c)