Commit 912eb30
stream: add setter & getter for default highWaterMark (#46929)
Adds stream.(get|set)DefaultHighWaterMark to read or update
the default hwm.
PR-URL: #46929
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Erick Wendel <erick.workspace@gmail.com>1 parent b620f5f commit 912eb30Copy full SHA for 912eb30
File tree
Expand file treeCollapse file tree
5 files changed
+81
-5
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal/streams
- test/parallel
Expand file treeCollapse file tree
5 files changed
+81
-5
lines changedOpen diff view settings
Collapse file
+23Lines changed: 23 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3324 | 3324 | |
3325 | 3325 | |
3326 | 3326 | |
| 3327 | + |
| 3328 | + |
| 3329 | + |
| 3330 | + |
| 3331 | + |
| 3332 | + |
| 3333 | + |
| 3334 | + |
| 3335 | + |
| 3336 | + |
| 3337 | + |
| 3338 | + |
| 3339 | + |
| 3340 | + |
| 3341 | + |
| 3342 | + |
| 3343 | + |
| 3344 | + |
| 3345 | + |
| 3346 | + |
| 3347 | + |
| 3348 | + |
| 3349 | + |
3327 | 3350 | |
3328 | 3351 | |
3329 | 3352 | |
|
Collapse file
+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
81 | 81 | |
82 | 82 | |
83 | 83 | |
84 | | - |
85 | | - |
86 | 84 | |
87 | 85 | |
88 | 86 | |
89 | 87 | |
| 88 | + |
90 | 89 | |
91 | 90 | |
92 | 91 | |
| ||
151 | 150 | |
152 | 151 | |
153 | 152 | |
| 153 | + |
154 | 154 | |
155 | 155 | |
156 | 156 | |
| ||
197 | 197 | |
198 | 198 | |
199 | 199 | |
200 | | - |
| 200 | + |
201 | 201 | |
202 | 202 | |
203 | 203 | |
| ||
404 | 404 | |
405 | 405 | |
406 | 406 | |
407 | | - |
| 407 | + |
408 | 408 | |
409 | 409 | |
410 | 410 | |
|
Collapse file
lib/internal/streams/state.js
Copy file name to clipboardExpand all lines: lib/internal/streams/state.js+15-1Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
| 11 | + |
| 12 | + |
| 13 | + |
10 | 14 | |
11 | 15 | |
12 | 16 | |
13 | 17 | |
14 | 18 | |
15 | 19 | |
16 | | - |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
17 | 30 | |
18 | 31 | |
19 | 32 | |
| ||
33 | 46 | |
34 | 47 | |
35 | 48 | |
| 49 | + |
36 | 50 | |
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
42 | 42 | |
43 | 43 | |
44 | 44 | |
| 45 | + |
45 | 46 | |
46 | 47 | |
47 | 48 | |
| ||
105 | 106 | |
106 | 107 | |
107 | 108 | |
| 109 | + |
| 110 | + |
108 | 111 | |
109 | 112 | |
110 | 113 | |
|
Collapse file
test/parallel/test-stream-set-default-hwm.js
Copy file name to clipboard+36Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
0 commit comments