fix recovery accounting

This commit is contained in:
DeniskaRediska committed 2019-11-27 13:46:46 +03:00
1 parent 909ff91b2b
commit 1ffe9e4a62
6 files changed
+148 -66

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ func (handlerHelper) AuthenticateAccountingProxy(ctx *fasthttp.RequestCtx) domai
return domain.Create().SetError(err)
}
if !accounting.Accept(applicationId, path) {
if !accounting.Worker.AcceptRequest(applicationId, path) {
err := errors.New("accounting error")
utils.WriteError(ctx, "too many requests", codes.ResourceExhausted, nil)
return domain.Create().SetError(err)