be specific about what type we're encoding

to be consistent with Decode, which returns TimedWALMessage
This commit is contained in:
Anton Kaliaev
2017-12-07 11:45:50 -06:00
parent 07571741c5
commit 90944bb1a2

View File

@@ -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)