Merge branch 'main' into feature/bots

This commit is contained in:
Jason Song
2022-12-01 13:39:47 +08:00
committed by GitHub
6 changed files with 168 additions and 81 deletions

View File

@@ -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)