Merge pull request #1976 from waku-org/fix/history-error-code

fix: use correct error message for store rate limit
This commit is contained in:
Arseniy Klempner 2024-04-24 18:03:18 -07:00 committed by GitHub
commit 3b0f330b02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -377,14 +377,14 @@ export namespace HistoryResponse {
export enum HistoryError {
NONE = 'NONE',
INVALID_CURSOR = 'INVALID_CURSOR',
TOO_MANY_RESULTS = 'TOO_MANY_RESULTS',
TOO_MANY_REQUESTS = 'TOO_MANY_REQUESTS',
SERVICE_UNAVAILABLE = 'SERVICE_UNAVAILABLE'
}
enum __HistoryErrorValues {
NONE = 0,
INVALID_CURSOR = 1,
TOO_MANY_RESULTS = 429,
TOO_MANY_REQUESTS = 429,
SERVICE_UNAVAILABLE = 503
}

View File

@ -42,7 +42,7 @@ message HistoryResponse {
enum HistoryError {
NONE = 0;
INVALID_CURSOR = 1;
TOO_MANY_RESULTS = 429;
TOO_MANY_REQUESTS = 429;
SERVICE_UNAVAILABLE = 503;
}
HistoryError error = 4;