@blocklet/did-space-js 1.0.29 → 1.0.30
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.
|
@@ -107,8 +107,6 @@ class IncrementalSyncBaseCommand extends base_1.BaseCommand {
|
|
|
107
107
|
* @memberof IncrementalSyncBaseCommand
|
|
108
108
|
*/
|
|
109
109
|
async retryRequest(error) {
|
|
110
|
-
// 减少重试次数
|
|
111
|
-
this.input.retryCount = this.input.retryCount - 1;
|
|
112
110
|
// clear queue
|
|
113
111
|
this.queue.clear();
|
|
114
112
|
// 输出错误
|
|
@@ -138,9 +136,11 @@ class IncrementalSyncBaseCommand extends base_1.BaseCommand {
|
|
|
138
136
|
},
|
|
139
137
|
};
|
|
140
138
|
}
|
|
139
|
+
// 减少重试次数
|
|
140
|
+
this.input.retryCount = this.input.retryCount - 1;
|
|
141
141
|
// 目前我们的重试时间间隔是以 2 的指数增长的,第1次重试 1 s,第 2 次重试 2 s, 第 3 次重试间隔 4 s...
|
|
142
|
-
const retryDelayMs = 2 ** this.retryCount * 1000;
|
|
143
142
|
++this.retryCount;
|
|
143
|
+
const retryDelayMs = 2 ** this.retryCount * 1000;
|
|
144
144
|
await (0, sleep_1.sleep)(retryDelayMs);
|
|
145
145
|
return this.request();
|
|
146
146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/did-space-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@arcblock/jwt": "^1.19.15",
|
|
34
34
|
"@arcblock/validator": "^1.19.15",
|
|
35
35
|
"@blocklet/env": "^1.16.39",
|
|
36
|
-
"@did-space/core": "^1.0.
|
|
36
|
+
"@did-space/core": "^1.0.30",
|
|
37
37
|
"@ocap/mcrypto": "^1.19.15",
|
|
38
38
|
"@ocap/util": "^1.19.15",
|
|
39
39
|
"@ocap/wallet": "^1.19.15",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"ts-jest": "^28.0.8",
|
|
77
77
|
"typescript": "^4.9.5"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "252f8dbe7a683d14c2daf51331b882496eb25756"
|
|
80
80
|
}
|