Skip to content

Commit

Permalink
Fix Linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mupu committed May 5, 2024
1 parent 51c5ae0 commit 23f3a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/stream/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ export const onRequest = defineMiddleware(async (ctx, next) => {
setTimeout(() => {
const flushedChunk = flushableChunks.get(id) ?? chunk;
try {
streamController.enqueue({ id, chunk: flushedChunk });
streamController.enqueue({ id, chunk: flushedChunk });
} catch (e) {
streamController.error(e);
streamController.error(e);
}
flushableChunks.delete(id);
}, FLUSH_THRESHOLD);
Expand Down

0 comments on commit 23f3a87

Please sign in to comment.