Skip to content

Commit a7b917d

Browse files
committed
Experiment with importing webstreams
1 parent 417b466 commit a7b917d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/trie/src/util/readStream.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ReadableStream } from 'node:stream/web'
12
import { Readable } from 'readable-stream'
23

34
import { BranchNode, LeafNode } from '../node/index.js'
@@ -14,6 +15,8 @@ export class TrieReadStream extends Readable {
1415
constructor(trie: Trie) {
1516
super({ objectMode: true })
1617

18+
const s = new ReadableStream()
19+
void s.cancel()
1720
this.trie = trie
1821
this._started = false
1922
}

0 commit comments

Comments
 (0)