Skip to content

Commit

Permalink
fix(server): remove stream.finished() call in finally block for strea…
Browse files Browse the repository at this point in the history
…ming handling
  • Loading branch information
ddadaal committed Sep 9, 2024
1 parent e12d678 commit df75490
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/yellow-pants-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ddadaal/tsgrpc-server": patch
---

remove stream.finished to avoid error
1 change: 0 additions & 1 deletion packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ export class Server {
if (responseStream) {
logger.info("Ending response stream");
augmentedCall.end();
await finished(augmentedCall);
}
}
})();
Expand Down

0 comments on commit df75490

Please sign in to comment.