Browse Source

be specific about what type we're encoding

to be consistent with Decode, which returns TimedWALMessage
pull/931/head
Anton Kaliaev 7 years ago
parent
commit
90944bb1a2
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consensus/wal.go

+ 1
- 1
consensus/wal.go 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)


Loading…
Cancel
Save