mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
[skip ci]Fix allocator comment (#9030)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
This commit is contained in:
parent
4f33a807f2
commit
5b90868e88
@ -27,7 +27,7 @@ type GIDAllocator interface {
|
||||
UpdateID() error
|
||||
}
|
||||
|
||||
// GlobalTSOAllocator is the global single point TSO allocator.
|
||||
// GlobalIDAllocator is the global single point TSO allocator.
|
||||
type GlobalIDAllocator struct {
|
||||
allocator tso.Allocator
|
||||
}
|
||||
@ -46,6 +46,7 @@ func (gia *GlobalIDAllocator) Initialize() error {
|
||||
return gia.allocator.Initialize()
|
||||
}
|
||||
|
||||
// Alloc allocates the id of the count number.
|
||||
// GenerateTSO is used to generate a given number of TSOs.
|
||||
// Make sure you have initialized the TSO allocator before calling.
|
||||
func (gia *GlobalIDAllocator) Alloc(count uint32) (typeutil.UniqueID, typeutil.UniqueID, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user