From d41cdbb909071bd56e2a2889ef3aba79b35c6073 Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 7 Oct 2021 17:55:53 +0800 Subject: [PATCH] [skip ci]Add comment for SetState (#9397) Signed-off-by: sunby --- internal/datacoord/segment_info.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/datacoord/segment_info.go b/internal/datacoord/segment_info.go index 8530b64f97..e290198dac 100644 --- a/internal/datacoord/segment_info.go +++ b/internal/datacoord/segment_info.go @@ -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