Skip to content

Commit

Permalink
Merge pull request #1976 from waku-org/fix/history-error-code
Browse files Browse the repository at this point in the history
fix: use correct error message for store rate limit
  • Loading branch information
adklempner authored Apr 25, 2024
2 parents 7ee02fa + 6990e6f commit 3b0f330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/proto/src/generated/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion packages/proto/src/lib/store.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b0f330

Please sign in to comment.