[skip ci] Fix golint error in event_reader.go (#9156)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/9164/head
zhenshan.cao 2021-10-03 20:56:05 +08:00 committed by GitHub
parent 057317f8b2
commit b76e9de5ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import (
"github.com/milvus-io/milvus/internal/proto/schemapb"
)
// EventReader is used to parse the events contained in the Binlog file.
type EventReader struct {
eventHeader
eventData
@ -70,6 +71,8 @@ func (reader *EventReader) readData() error {
return nil
}
// Close closes EventReader object. It mainly calls the Close method of inner PayloadReaderInterface and
// mark itself as closed.
func (reader *EventReader) Close() error {
if !reader.isClosed {
reader.isClosed = true