From 00820ec564b4855b2dd571bdf597c97f5aaa92a2 Mon Sep 17 00:00:00 2001 From: Cayman Date: Mon, 14 Oct 2024 16:39:27 -0400 Subject: [PATCH] chore: more experiment --- src/stream.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream.ts b/src/stream.ts index c203099..e2a8ebc 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -98,7 +98,7 @@ export class QuicStream implements Stream { while (true) { this.log.trace('', this.id, 'reading') const chunk = Buffer.allocUnsafe(CHUNK_SIZE) - const length = await this.#stream.read5(chunk) + const length = await this.#stream.read(chunk) if (length == null) { this.log.trace('', this.id, 'no more data') break @@ -125,7 +125,7 @@ export class QuicStream implements Stream { for await (const chunk of source) { const data = chunk instanceof Uint8ArrayList ? chunk.subarray() : chunk this.log.trace('', this.id, 'writing', data.length, 'bytes') - await this.#stream.write4(data) + await this.#stream.write(data) this.log.trace('', this.id, 'wrote', data.length, 'bytes') } } catch (e) {