From b2c4870481329889a76ea2421152647d36dd8374 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 1 Dec 2022 00:41:49 +0800 Subject: Fix parallel creating commit status bug with tests (#21911) This PR is a follow up of #21469 Co-authored-by: Lauris BH --- models/db/index.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'models/db') diff --git a/models/db/index.go b/models/db/index.go index 46be74e91e..ca664c9cf1 100644 --- a/models/db/index.go +++ b/models/db/index.go @@ -23,11 +23,6 @@ var ( ErrGetResourceIndexFailed = errors.New("get resource index failed") ) -const ( - // MaxDupIndexAttempts max retry times to create index - MaxDupIndexAttempts = 3 -) - // SyncMaxResourceIndex sync the max index with the resource func SyncMaxResourceIndex(ctx context.Context, tableName string, groupID, maxIndex int64) (err error) { e := GetEngine(ctx) -- cgit v1.2.3