hypercore-storage 2.5.1 → 2.5.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.
- package/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -823,6 +823,7 @@ class CorestoreStorage {
|
|
|
823
823
|
for (const inf of infos) {
|
|
824
824
|
tx.setCoreHints(inf.core, { ...inf.hints, recovering })
|
|
825
825
|
}
|
|
826
|
+
tx.apply()
|
|
826
827
|
} finally {
|
|
827
828
|
if (own) await this._exit()
|
|
828
829
|
}
|
|
@@ -1194,7 +1195,8 @@ async function fileExists(path) {
|
|
|
1194
1195
|
}
|
|
1195
1196
|
|
|
1196
1197
|
function shouldRecover(err) {
|
|
1197
|
-
return err.message.toLowerCase().indexOf('sequence number is being set backwards') > -1
|
|
1198
|
+
// return err.message.toLowerCase().indexOf('sequence number is being set backwards') > -1
|
|
1199
|
+
return false // disabled for now, can reenable when needed
|
|
1198
1200
|
}
|
|
1199
1201
|
|
|
1200
1202
|
function noop() {}
|