[skip ci]Add comment for AddAllocation (#9525)

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

View File

@ -231,6 +231,7 @@ func SetAllocations(allocations []*Allocation) SegmentInfoOption {
}
}
// AddAllocation is the option to add allocation info for segment info
func AddAllocation(allocation *Allocation) SegmentInfoOption {
return func(segment *SegmentInfo) {
segment.allocations = append(segment.allocations, allocation)