fix: use correct error message for store rate limit

This commit is contained in:
Arseniy Klempner 2024-04-24 15:00:26 -07:00
parent 7ee02faf48
commit 6990e6f4e0
No known key found for this signature in database
GPG Key ID: 51653F18863BD24B
2 changed files with 3 additions and 3 deletions

View File

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

View File

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