refactor: remove metadata field
This commit is contained in:
parent
f77db1cf7d
commit
a71f1cb155
|
@ -5,7 +5,6 @@ import Metadata = grpc.Metadata;
|
||||||
class HyperTransport implements grpc.Transport {
|
class HyperTransport implements grpc.Transport {
|
||||||
private options: grpc.TransportOptions;
|
private options: grpc.TransportOptions;
|
||||||
private rpc: RpcNetwork;
|
private rpc: RpcNetwork;
|
||||||
private metadata?: Metadata;
|
|
||||||
|
|
||||||
constructor(transportOptions: grpc.TransportOptions, rpc: RpcNetwork) {
|
constructor(transportOptions: grpc.TransportOptions, rpc: RpcNetwork) {
|
||||||
this.options = transportOptions;
|
this.options = transportOptions;
|
||||||
|
@ -22,7 +21,6 @@ class HyperTransport implements grpc.Transport {
|
||||||
module: "lavanet",
|
module: "lavanet",
|
||||||
method: "badge_request",
|
method: "badge_request",
|
||||||
data: {
|
data: {
|
||||||
metadata: this.metadata,
|
|
||||||
data: msgBytes,
|
data: msgBytes,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -38,9 +36,7 @@ class HyperTransport implements grpc.Transport {
|
||||||
this.options.onEnd();
|
this.options.onEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
start(metadata: Metadata): void {
|
start(metadata: Metadata): void {}
|
||||||
this.metadata = metadata;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hyperTransport(rpc: RpcNetwork): grpc.TransportFactory {
|
export function hyperTransport(rpc: RpcNetwork): grpc.TransportFactory {
|
||||||
|
|
Loading…
Reference in New Issue