Remove unnecessary variables in allocator (#7849)

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
This commit is contained in:
Xiaofan 2021-09-14 09:54:31 +08:00 committed by GitHub
parent 87460665e0
commit 00a5c39c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,11 @@ type idAllocatorInterface interface {
AllocID(ctx context.Context, req *rootcoordpb.AllocIDRequest) (*rootcoordpb.AllocIDResponse, error) AllocID(ctx context.Context, req *rootcoordpb.AllocIDRequest) (*rootcoordpb.AllocIDResponse, error)
} }
// ID Allocator allocate Unique and monotonically increasing IDs from Root Coord.
// It could also batch allocate for less root coord server access
type IDAllocator struct { type IDAllocator struct {
Allocator Allocator
etcdEndpoints []string
metaRoot string
idAllocator idAllocatorInterface idAllocator idAllocatorInterface
countPerRPC uint32 countPerRPC uint32