nice-grpc-client-middleware-retry
Advanced tools
Comparing version 2.0.2 to 3.0.0
@@ -47,3 +47,3 @@ import { ClientError, ClientMiddleware, Status } from 'nice-grpc-common'; | ||
* | ||
* Default is `[UNKNOWN, RESOURCE_EXHAUSTED, INTERNAL, UNAVAILABLE]`. | ||
* Default is `[UNKNOWN, INTERNAL, UNAVAILABLE]`. | ||
*/ | ||
@@ -50,0 +50,0 @@ retryableStatuses?: Status[]; |
@@ -8,3 +8,2 @@ "use strict"; | ||
nice_grpc_common_1.Status.UNKNOWN, | ||
nice_grpc_common_1.Status.RESOURCE_EXHAUSTED, | ||
nice_grpc_common_1.Status.INTERNAL, | ||
@@ -11,0 +10,0 @@ nice_grpc_common_1.Status.UNAVAILABLE, |
{ | ||
"name": "nice-grpc-client-middleware-retry", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "Retry client middleware for nice-grpc", | ||
@@ -28,3 +28,3 @@ "repository": "deeplay-io/nice-grpc", | ||
"jest-mock-random": "^1.1.1", | ||
"nice-grpc": "^2.1.0", | ||
"nice-grpc": "^2.1.1", | ||
"ts-proto": "^1.112.0" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "090b1090ea4ac6859d7f240386fdac48415c1969" | ||
"gitHead": "32f276646579d3fdb7ae18fc72bb17c1b86b5ef3" | ||
} |
@@ -65,3 +65,3 @@ # nice-grpc-client-middleware-retry [![npm version][npm-image]][npm-url] <!-- omit in toc --> | ||
retryMaxAttempts: 5, | ||
// defaults to [UNKNOWN, RESOURCE_EXHAUSTED, INTERNAL, UNAVAILABLE] | ||
// defaults to [UNKNOWN, INTERNAL, UNAVAILABLE] | ||
retryableStatuses: [Status.UNAVAILABLE], | ||
@@ -68,0 +68,0 @@ onRetryableError(error: ClientError, attempt: number, delayMs: number) { |
@@ -49,3 +49,3 @@ import {delay, rethrowAbortError} from 'abort-controller-x'; | ||
* | ||
* Default is `[UNKNOWN, RESOURCE_EXHAUSTED, INTERNAL, UNAVAILABLE]`. | ||
* Default is `[UNKNOWN, INTERNAL, UNAVAILABLE]`. | ||
*/ | ||
@@ -66,3 +66,2 @@ retryableStatuses?: Status[]; | ||
Status.UNKNOWN, | ||
Status.RESOURCE_EXHAUSTED, | ||
Status.INTERNAL, | ||
@@ -69,0 +68,0 @@ Status.UNAVAILABLE, |
Sorry, the diff of this file is not supported yet
15418
216