File tree 2 files changed +8
-8
lines changed
packages/core/src/lib/light_push
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { Uint8ArrayList } from "uint8arraylist";
18
18
import { BaseProtocol } from "../base_protocol.js" ;
19
19
import { DefaultPubSubTopic } from "../constants.js" ;
20
20
21
- import { PushRPC } from "./push_rpc.js" ;
21
+ import { PushRpc } from "./push_rpc.js" ;
22
22
23
23
const log = debug ( "waku:light-push" ) ;
24
24
@@ -54,7 +54,7 @@ class LightPush extends BaseProtocol implements ILightPush {
54
54
log ( "Failed to encode to protoMessage, aborting push" ) ;
55
55
return { recipients } ;
56
56
}
57
- const query = PushRPC . createRequest ( protoMessage , pubSubTopic ) ;
57
+ const query = PushRpc . createRequest ( protoMessage , pubSubTopic ) ;
58
58
const res = await pipe (
59
59
[ query . encode ( ) ] ,
60
60
lp . encode ( ) ,
@@ -68,7 +68,7 @@ class LightPush extends BaseProtocol implements ILightPush {
68
68
bytes . append ( chunk ) ;
69
69
} ) ;
70
70
71
- const response = PushRPC . decode ( bytes ) . response ;
71
+ const response = PushRpc . decode ( bytes ) . response ;
72
72
73
73
if ( ! response ) {
74
74
log ( "No response in PushRPC" ) ;
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ import { proto_lightpush as proto } from "@waku/proto";
2
2
import type { Uint8ArrayList } from "uint8arraylist" ;
3
3
import { v4 as uuid } from "uuid" ;
4
4
5
- export class PushRPC {
5
+ export class PushRpc {
6
6
public constructor ( public proto : proto . PushRpc ) { }
7
7
8
8
static createRequest (
9
9
message : proto . WakuMessage ,
10
10
pubSubTopic : string
11
- ) : PushRPC {
12
- return new PushRPC ( {
11
+ ) : PushRpc {
12
+ return new PushRpc ( {
13
13
requestId : uuid ( ) ,
14
14
request : {
15
15
message : message ,
@@ -19,9 +19,9 @@ export class PushRPC {
19
19
} ) ;
20
20
}
21
21
22
- static decode ( bytes : Uint8ArrayList ) : PushRPC {
22
+ static decode ( bytes : Uint8ArrayList ) : PushRpc {
23
23
const res = proto . PushRpc . decode ( bytes ) ;
24
- return new PushRPC ( res ) ;
24
+ return new PushRpc ( res ) ;
25
25
}
26
26
27
27
encode ( ) : Uint8Array {
You can’t perform that action at this time.
0 commit comments