Skip to content

Commit 18d3138

Browse files
committed
chore: use pascal case for class name
1 parent 3e93e8f commit 18d3138

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/core/src/lib/light_push/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Uint8ArrayList } from "uint8arraylist";
1818
import { BaseProtocol } from "../base_protocol.js";
1919
import { DefaultPubSubTopic } from "../constants.js";
2020

21-
import { PushRPC } from "./push_rpc.js";
21+
import { PushRpc } from "./push_rpc.js";
2222

2323
const log = debug("waku:light-push");
2424

@@ -54,7 +54,7 @@ class LightPush extends BaseProtocol implements ILightPush {
5454
log("Failed to encode to protoMessage, aborting push");
5555
return { recipients };
5656
}
57-
const query = PushRPC.createRequest(protoMessage, pubSubTopic);
57+
const query = PushRpc.createRequest(protoMessage, pubSubTopic);
5858
const res = await pipe(
5959
[query.encode()],
6060
lp.encode(),
@@ -68,7 +68,7 @@ class LightPush extends BaseProtocol implements ILightPush {
6868
bytes.append(chunk);
6969
});
7070

71-
const response = PushRPC.decode(bytes).response;
71+
const response = PushRpc.decode(bytes).response;
7272

7373
if (!response) {
7474
log("No response in PushRPC");

packages/core/src/lib/light_push/push_rpc.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { proto_lightpush as proto } from "@waku/proto";
22
import type { Uint8ArrayList } from "uint8arraylist";
33
import { v4 as uuid } from "uuid";
44

5-
export class PushRPC {
5+
export class PushRpc {
66
public constructor(public proto: proto.PushRpc) {}
77

88
static createRequest(
99
message: proto.WakuMessage,
1010
pubSubTopic: string
11-
): PushRPC {
12-
return new PushRPC({
11+
): PushRpc {
12+
return new PushRpc({
1313
requestId: uuid(),
1414
request: {
1515
message: message,
@@ -19,9 +19,9 @@ export class PushRPC {
1919
});
2020
}
2121

22-
static decode(bytes: Uint8ArrayList): PushRPC {
22+
static decode(bytes: Uint8ArrayList): PushRpc {
2323
const res = proto.PushRpc.decode(bytes);
24-
return new PushRPC(res);
24+
return new PushRpc(res);
2525
}
2626

2727
encode(): Uint8Array {

0 commit comments

Comments
 (0)