[skip ci]Add comment for SetAllocations (#9524)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9509/head
sunby 2021-10-09 00:13:21 +08:00 committed by GitHub
parent 969c78e79d
commit 292aeeac63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -224,6 +224,7 @@ func SetStartPosition(pos *internalpb.MsgPosition) SegmentInfoOption {
}
}
// SetAllocations is the option to set allocations for segment info
func SetAllocations(allocations []*Allocation) SegmentInfoOption {
return func(segment *SegmentInfo) {
segment.allocations = allocations