Skip to content

Commit

Permalink
comment was truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Aug 28, 2023
1 parent e2298e0 commit 1436ab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/node/polyfills/internal_binding/stream_wrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export class LibuvStreamWrap extends HandleWrap {
/** Internal method for reading from the attached stream. */
async #read() {
// Lock safety: We must hold this lock until we are certain that buf is no longer used
// This setup code is a little verbose, but
// This setup code is a little verbose, but we need to be careful about buffer managedment
let buf, locked;
if (bufLocked) {
buf = new Uint8Array(SUGGESTED_SIZE);
Expand Down Expand Up @@ -363,7 +363,7 @@ export class LibuvStreamWrap extends HandleWrap {
if (nread > 0) {
this.bytesRead += nread;
}

git
// We release the lock early so a re-entrant read can make use of the shared buffer, but
// we need to make a copy of the data in the shared buffer.
if (locked) {
Expand Down

0 comments on commit 1436ab0

Please sign in to comment.