Skip to content

Commit

Permalink
fix: await initial pushable read (#109)
Browse files Browse the repository at this point in the history
Without this the first write to a byte/length-prefixed or protobuf
stream doesn't wait for the message to be read.
  • Loading branch information
achingbrain committed Dec 2, 2023
1 parent c7bf5e3 commit 011fb6b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/it-byte-stream/src/pushable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class QueuelessPushable <T> implements Pushable<T> {
this.ended = false

this.needNext = deferred()
this.needNext.resolve()

this.haveNext = deferred()
}

Expand Down

0 comments on commit 011fb6b

Please sign in to comment.