Skip to content

Commit db4e833

Browse files
committed
Fix documented default of highWaterMark
1 parent 7ead028 commit db4e833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ npm install level-read-stream
7373

7474
Create a readable stream that will yield entries. An entry is an object with `key` and `value` properties. The `db` argument must be an `abstract-level` database. The optional `options` object may contain:
7575

76-
- `highWaterMark` (number): the maximum number of entries to buffer internally before ceasing to read further entries. Default 16.
76+
- `highWaterMark` (number): the maximum number of entries to buffer internally before ceasing to read further entries. Default 1000.
7777

7878
Any other options are forwarded to `db.iterator(options)`. The stream wraps that iterator. If you prefer to consume entries with `for await...of` then it's recommended to directly use `db.iterator()`. In either case, most databases will read from a snapshot (thus unaffected by simultaneous writes) as indicated by `db.supports.snapshots`.
7979

0 commit comments

Comments
 (0)