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)
|
# [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",
|
"name": "@lumeweb/kernel-lavanet",
|
||||||
"version": "0.1.0-develop.2",
|
"version": "0.1.0-develop.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lumeweb/kernel-lavanet",
|
"name": "@lumeweb/kernel-lavanet",
|
||||||
"version": "0.1.0-develop.2",
|
"version": "0.1.0-develop.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lavanet/lava-sdk": "^0.21.1",
|
"@lavanet/lava-sdk": "^0.21.1",
|
||||||
"@lumeweb/kernel-rpc-client": "^0.0.2-develop.13",
|
"@lumeweb/kernel-rpc-client": "^0.0.2-develop.13",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/kernel-lavanet",
|
"name": "@lumeweb/kernel-lavanet",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.0-develop.2",
|
"version": "0.1.0-develop.1",
|
||||||
"readme": "ERROR: No README data found!",
|
"readme": "ERROR: No README data found!",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -5,6 +5,7 @@ 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;
|
||||||
|
@ -21,6 +22,7 @@ class HyperTransport implements grpc.Transport {
|
||||||
module: "lavanet",
|
module: "lavanet",
|
||||||
method: "badge_request",
|
method: "badge_request",
|
||||||
data: {
|
data: {
|
||||||
|
metadata: this.metadata,
|
||||||
data: msgBytes,
|
data: msgBytes,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -36,7 +38,9 @@ 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