Revert "fix(server): wrap read-modify-write apis with distributed lock (#5979)"

This reverts commit 34f892b05b.
This commit is contained in:
LongYinan
2024-03-15 16:55:48 +08:00
parent a24320da68
commit bc465f9704
20 changed files with 79 additions and 412 deletions
@@ -1,2 +1 @@
export * from './payment-required';
export * from './too-many-requests';
@@ -1,14 +0,0 @@
import { HttpException, HttpStatus } from '@nestjs/common';
export class TooManyRequestsException extends HttpException {
constructor(desc?: string, code: string = 'Too Many Requests') {
super(
HttpException.createBody(
desc ?? code,
code,
HttpStatus.TOO_MANY_REQUESTS
),
HttpStatus.TOO_MANY_REQUESTS
);
}
}