Skip to content

Commit b085bd7

Browse files
committed
Remove TODO comment about signals
Category: none
1 parent 1d50abd commit b085bd7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ function lte (value) {
5656
return compare(value, this[kUpperBound]) <= 0
5757
}
5858

59-
// TODO (v2): support signal
6059
class MemoryIterator extends AbstractIterator {
6160
constructor (db, options) {
6261
super(db, options)
@@ -285,7 +284,11 @@ class MemoryLevel extends AbstractLevel {
285284
permanence: false,
286285
createIfMissing: false,
287286
errorIfExists: false,
288-
encodings: { [storeEncoding]: true }
287+
encodings: { [storeEncoding]: true },
288+
signals: {
289+
// Would have no value here because the operations are synchronous
290+
iterators: false
291+
}
289292
}, forward)
290293

291294
this[kTree] = createRBT(compare)

0 commit comments

Comments
 (0)