From a71f1cb15536d80bfa77dc3d0c9c9f670aac62c1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 20 Aug 2023 08:58:23 -0400 Subject: [PATCH] refactor: remove metadata field --- src/transport.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/transport.ts b/src/transport.ts index 00c501a..4e21b78 100644 --- a/src/transport.ts +++ b/src/transport.ts @@ -5,7 +5,6 @@ import Metadata = grpc.Metadata; class HyperTransport implements grpc.Transport { private options: grpc.TransportOptions; private rpc: RpcNetwork; - private metadata?: Metadata; constructor(transportOptions: grpc.TransportOptions, rpc: RpcNetwork) { this.options = transportOptions; @@ -22,7 +21,6 @@ class HyperTransport implements grpc.Transport { module: "lavanet", method: "badge_request", data: { - metadata: this.metadata, data: msgBytes, }, }, @@ -38,9 +36,7 @@ class HyperTransport implements grpc.Transport { this.options.onEnd(); } - start(metadata: Metadata): void { - this.metadata = metadata; - } + start(metadata: Metadata): void {} } export function hyperTransport(rpc: RpcNetwork): grpc.TransportFactory {