Skip to content

Commit af2878f

Browse files
apokalyptiksiddontang
authored andcommitted
Stop doing a Reset() in ParseReader. It is unnecessary and limiting (go-mysql-org#133)
1 parent ead11ca commit af2878f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

replication/parser.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ func (p *BinlogParser) ParseFile(name string, offset int64, onEvent OnEventFunc)
6060
}
6161

6262
func (p *BinlogParser) ParseReader(r io.Reader, onEvent OnEventFunc) error {
63-
p.Reset()
64-
6563
var err error
6664
var n int64
6765

0 commit comments

Comments
 (0)