We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ceef5a commit 087190bCopy full SHA for 087190b
core/encoder.go
@@ -3,9 +3,10 @@ package core
3
import (
4
"encoding/binary"
5
"fmt"
6
- "github.com/hdt3213/rdb/crc64jones"
7
"hash"
8
"io"
+
9
+ "github.com/hdt3213/rdb/crc64jones"
10
)
11
12
// Encoder is used to generate RDB file
@@ -233,7 +234,6 @@ func (enc *Encoder) WriteEnd() error {
233
234
if err != nil {
235
return fmt.Errorf("write crc sum failed: %v", err)
236
}
- enc.writer.Write([]byte{0x0a}) // write LF
237
enc.state = writtenEndState
238
return nil
239
0 commit comments