Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Commit 64bbd1b

Browse files
authored
sessions inherit onwait (#116)
1 parent 23642ca commit 64bbd1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,12 @@ module.exports = class Hypercore extends EventEmitter {
185185
}
186186

187187
const sparse = opts.sparse === false ? false : this.sparse
188+
const onwait = opts.onwait === undefined ? this.onwait : opts.onwait
188189
const Clz = opts.class || Hypercore
189190
const s = new Clz(this.storage, this.key, {
190191
...opts,
191192
sparse,
193+
onwait,
192194
_opening: this.opening,
193195
_sessions: this.sessions
194196
})

0 commit comments

Comments
 (0)