refactor: remove metadata field

This commit is contained in:
Derrick Hammer 2023-08-20 08:58:23 -04:00
parent f77db1cf7d
commit a71f1cb155
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 5 deletions

View File

@ -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 {