[skip ci]Add comment for SetFlushTime (#9668)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9703/head
sunby 2021-10-11 21:06:37 +08:00 committed by GitHub
parent 6fc64b836a
commit aba9aa450d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ func SetBinlogs(binlogs []*datapb.FieldBinlog) SegmentInfoOption {
}
}
// SetFlushTime is the option to set flush time for segment info
func SetFlushTime(t time.Time) SegmentInfoOption {
return func(segment *SegmentInfo) {
segment.lastFlushTime = t