mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for SetAllocations (#9524)
Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/9509/head
parent
969c78e79d
commit
292aeeac63
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue