@gravity-ui/gateway 4.10.2 → 4.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -157,6 +157,7 @@ const reflectionServiceInstancesMap = {};
157
157
  function clearInstancesCache(service, instancesMap, cachePath, closeTimeout, ctx) {
158
158
  const cachedService = lodash_1.default.get(instancesMap, cachePath);
159
159
  if (cachedService !== service) {
160
+ ctx.log(`Service client not matched cached service for cachePath '${cachePath}'`);
160
161
  return;
161
162
  }
162
163
  // Remove cached service instance
@@ -677,7 +678,7 @@ function createGrpcAction({ root, credentials }, endpoints, config, serviceKey,
677
678
  ((_b = (_a = options.grpcRetryCondition) === null || _a === void 0 ? void 0 : _a.call(options, error)) !== null && _b !== void 0 ? _b : (0, grpc_1.isRetryableGrpcError)(error));
678
679
  if (shouldRecreateService) {
679
680
  ctx.log(`Service client for ${config.protoKey} is going to be re-created`);
680
- recreateService(service, timeout * 1.5, ctx, args);
681
+ recreateService(service, 5000, ctx, args);
681
682
  }
682
683
  if (shouldRetry) {
683
684
  (0, common_2.handleError)(ErrorConstructor, error, ctx, `Request failed, retrying ${retries--} more times`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/gateway",
3
- "version": "4.10.2",
3
+ "version": "4.10.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "build/index.js",