[skip e2e]Fix allocator variable typo (#13632)

Signed-off-by: godchen0212 <qingxiang.chen@zilliz.com>
pull/13667/head
godchen 2021-12-17 19:44:46 +08:00 committed by GitHub
parent 9576ec4dcb
commit cb570a5a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ type IDAllocator struct {
}
// NewIDAllocator creates an ID Allocator allocate Unique and monotonically increasing IDs from RootCoord.
func NewIDAllocator(ctx context.Context, idAlloctor idAllocatorInterface, peerID UniqueID) (*IDAllocator, error) {
func NewIDAllocator(ctx context.Context, idAllocator idAllocatorInterface, peerID UniqueID) (*IDAllocator, error) {
ctx1, cancel := context.WithCancel(ctx)
a := &IDAllocator{
Allocator: Allocator{
@ -65,7 +65,7 @@ func NewIDAllocator(ctx context.Context, idAlloctor idAllocatorInterface, peerID
Role: "IDAllocator",
},
countPerRPC: idCountPerRPC,
idAllocator: idAlloctor,
idAllocator: idAllocator,
PeerID: peerID,
}
a.TChan = &EmptyTicker{}