From 1f524bdf3e0728c38e6268bcb850afa593da91c3 Mon Sep 17 00:00:00 2001 From: dragondriver Date: Wed, 23 Jun 2021 17:34:05 +0800 Subject: [PATCH] Fix id allocator (#6024) Signed-off-by: dragondriver --- internal/allocator/id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/allocator/id.go b/internal/allocator/id.go index 2eee977d36..d6b0871881 100644 --- a/internal/allocator/id.go +++ b/internal/allocator/id.go @@ -152,7 +152,7 @@ func (ia *IDAllocator) pickCanDoFunc() { func (ia *IDAllocator) processFunc(req Request) error { idRequest := req.(*IDRequest) idRequest.id = ia.idStart - ia.idStart++ + ia.idStart += int64(idRequest.count) return nil }