feat: 实现安全多 Provider worker (#22)

This commit is contained in:
ila
2026-08-21 21:00:25 +08:00
parent 9b2827a727
commit 35fd0342f0
22 changed files with 1498 additions and 375 deletions
+6
View File
@@ -19,6 +19,12 @@ func (f *fakeRepository) ClaimNext(context.Context, string, time.Duration) (*Cla
f.claims++
return nil, nil
}
func (f *fakeRepository) BeginProviderAttempt(context.Context, uint64, string, uint64, uint64) (model.Attempt, bool, error) {
return model.Attempt{}, false, nil
}
func (f *fakeRepository) FinishProviderAttempt(context.Context, uint64, string, model.Attempt) (bool, error) {
return false, nil
}
func (f *fakeRepository) AssignProvider(context.Context, uint64, string, uint64) (bool, error) {
return false, nil
}