From 00a5c39c2fb316190b6dc82577e5ec0c6b9e9e82 Mon Sep 17 00:00:00 2001 From: Xiaofan <83447078+xiaofan-luan@users.noreply.github.com> Date: Tue, 14 Sep 2021 09:54:31 +0800 Subject: [PATCH] Remove unnecessary variables in allocator (#7849) Signed-off-by: xiaofan-luan --- internal/allocator/id.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/allocator/id.go b/internal/allocator/id.go index 71d55d526..4426c83b9 100644 --- a/internal/allocator/id.go +++ b/internal/allocator/id.go @@ -34,12 +34,12 @@ type idAllocatorInterface interface { 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 { Allocator - etcdEndpoints []string - metaRoot string - idAllocator idAllocatorInterface + idAllocator idAllocatorInterface countPerRPC uint32 -- GitLab