feat: 实现安全多 Provider worker (#22)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user