hypercore 11.0.41 → 11.0.43
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 -0
- package/lib/core.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
package/lib/core.js
CHANGED
|
@@ -22,6 +22,7 @@ module.exports = class Core {
|
|
|
22
22
|
this.sessionStates = []
|
|
23
23
|
this.monitors = []
|
|
24
24
|
this.activeSessions = 0
|
|
25
|
+
this.gc = 0 // corestore uses this to main a gc strike pool
|
|
25
26
|
|
|
26
27
|
this.id = opts.key ? z32.encode(opts.key) : null
|
|
27
28
|
this.key = opts.key || null
|
|
@@ -123,7 +124,6 @@ module.exports = class Core {
|
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
this.opened = true
|
|
126
|
-
this.checkIfIdle()
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
async _tryOpen (opts) {
|