From 6990e6f4e04d57ac06ef370c8c3642a17911cdf3 Mon Sep 17 00:00:00 2001 From: Arseniy Klempner Date: Wed, 24 Apr 2024 15:00:26 -0700 Subject: [PATCH] fix: use correct error message for store rate limit --- packages/proto/src/generated/store.ts | 4 ++-- packages/proto/src/lib/store.proto | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/proto/src/generated/store.ts b/packages/proto/src/generated/store.ts index 6a296fa444..82eef846d8 100644 --- a/packages/proto/src/generated/store.ts +++ b/packages/proto/src/generated/store.ts @@ -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 } diff --git a/packages/proto/src/lib/store.proto b/packages/proto/src/lib/store.proto index 48c0c95fa7..a083f88524 100644 --- a/packages/proto/src/lib/store.proto +++ b/packages/proto/src/lib/store.proto @@ -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;