Compare commits
No commits in common. "v0.1.0-develop.2" and "v0.1.0-develop.1" have entirely different histories.
v0.1.0-dev
...
v0.1.0-dev
|
@ -1,5 +1,3 @@
|
|||
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-08-20)
|
||||
|
||||
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.0.1...v0.1.0-develop.1) (2023-08-20)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-lavanet",
|
||||
"version": "0.1.0-develop.2",
|
||||
"version": "0.1.0-develop.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/kernel-lavanet",
|
||||
"version": "0.1.0-develop.2",
|
||||
"version": "0.1.0-develop.1",
|
||||
"dependencies": {
|
||||
"@lavanet/lava-sdk": "^0.21.1",
|
||||
"@lumeweb/kernel-rpc-client": "^0.0.2-develop.13",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-lavanet",
|
||||
"type": "module",
|
||||
"version": "0.1.0-develop.2",
|
||||
"version": "0.1.0-develop.1",
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -5,6 +5,7 @@ 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;
|
||||
|
@ -21,6 +22,7 @@ class HyperTransport implements grpc.Transport {
|
|||
module: "lavanet",
|
||||
method: "badge_request",
|
||||
data: {
|
||||
metadata: this.metadata,
|
||||
data: msgBytes,
|
||||
},
|
||||
},
|
||||
|
@ -36,7 +38,9 @@ class HyperTransport implements grpc.Transport {
|
|||
this.options.onEnd();
|
||||
}
|
||||
|
||||
start(metadata: Metadata): void {}
|
||||
start(metadata: Metadata): void {
|
||||
this.metadata = metadata;
|
||||
}
|
||||
}
|
||||
|
||||
export function hyperTransport(rpc: RpcNetwork): grpc.TransportFactory {
|
||||
|
|
Loading…
Reference in New Issue