badmfck-api-server 4.0.92 → 4.0.93

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.
@@ -97,7 +97,7 @@ async function Initializer(services) {
97
97
  }
98
98
  exports.Initializer = Initializer;
99
99
  class APIService extends BaseService_1.BaseService {
100
- version = "4.0.92";
100
+ version = "4.0.93";
101
101
  options;
102
102
  monitor = null;
103
103
  started = new Date();
@@ -88,7 +88,7 @@ class MicroserviceClient extends BaseService_1.BaseService {
88
88
  console.log(`Network error on microservice call attempt ${attempt}:`, resp);
89
89
  if (attempt < maxAttempts) {
90
90
  console.log(`Retrying microservice call... (attempt ${attempt}/${maxAttempts})`);
91
- TimeframeService_1.TimeframeService.wait(500);
91
+ await TimeframeService_1.TimeframeService.wait(300 * attempt);
92
92
  continue;
93
93
  }
94
94
  console.log(`Microservice call failed after ${attempt} attempts due to network errors.`);
@@ -106,7 +106,7 @@ class MicroserviceClient extends BaseService_1.BaseService {
106
106
  if (isAccepted) {
107
107
  console.log(`Microservice call accepted, polling for result... (attempt ${attempt}/${maxAttempts})`);
108
108
  if (attempt < maxAttempts) {
109
- TimeframeService_1.TimeframeService.wait(500);
109
+ await TimeframeService_1.TimeframeService.wait(300 * attempt);
110
110
  continue;
111
111
  }
112
112
  console.log(`Microservice call timed out after ${attempt} attempts.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "4.0.92",
3
+ "version": "4.0.93",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",