diff --git a/packages/app/src/codec.ts b/packages/app/src/codec.ts index 519d1a5..9640835 100644 --- a/packages/app/src/codec.ts +++ b/packages/app/src/codec.ts @@ -96,9 +96,7 @@ export namespace PromiseMap { // FIXME: tracing effiency export class IntoServer extends Queue implements AsyncGenerator { enqueue(item: Uint8Array): void { - const delimited = decoder.decode(item); - const message = Headers.remove(delimited); - Tracer.client(message); + Tracer.client(Headers.remove(decoder.decode(item))); super.enqueue(item); } }