Skip to content

Commit dcd67ad

Browse files
committed
remove another needless destroy
1 parent bbaebdf commit dcd67ad

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/runtime/src/util/ensure-state-size.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export default async (value: any, limit_mb: number = 500) => {
2525
size_bytes += Buffer.byteLength(chunk, 'utf8');
2626

2727
if (size_bytes > limitBytes) {
28-
stream.destroy();
2928
throw new StateTooLargeError(limit_mb);
3029
}
3130
}

0 commit comments

Comments
 (0)