diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-12-01 00:41:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 00:41:49 +0800 |
commit | b2c4870481329889a76ea2421152647d36dd8374 (patch) | |
tree | 2c38760bed01e1b2da3a36fa67917e4e60b5c252 /models/db | |
parent | 67881ae99abc673954d56436730af313c93ee48f (diff) | |
download | gitea-b2c4870481329889a76ea2421152647d36dd8374.tar.gz gitea-b2c4870481329889a76ea2421152647d36dd8374.zip |
Fix parallel creating commit status bug with tests (#21911)
This PR is a follow up of #21469
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'models/db')
-rw-r--r-- | models/db/index.go | 5 |
1 files changed, 0 insertions, 5 deletions
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) |