[skip ci]Add comment for SetState (#9397)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
sunby 2021-10-07 17:55:53 +08:00 committed by GitHub
parent cc794354b5
commit d41cdbb909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,7 @@ func SetExpireTime(expireTs Timestamp) SegmentInfoOption {
}
}
// SetState is the option to set state for segment info
func SetState(state commonpb.SegmentState) SegmentInfoOption {
return func(segment *SegmentInfo) {
segment.State = state