[skip ci]Add comment for SetExpireTime (#9395)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9412/head
sunby 2021-10-07 17:45:29 +08:00 committed by GitHub
parent 9bc2c9f419
commit 6c0b38eb5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ func SetRowCount(rowCount int64) SegmentInfoOption {
}
}
// SetExpireTime is the option to set expire time for segment info
func SetExpireTime(expireTs Timestamp) SegmentInfoOption {
return func(segment *SegmentInfo) {
segment.LastExpireTime = expireTs