Skip to content

Commit

Permalink
chore: use pascal case for class name
Browse files Browse the repository at this point in the history
  • Loading branch information
fryorcraken committed Feb 27, 2023
1 parent 967e6ff commit 81d6638
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/lib/store/history_rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface Params {
cursor?: proto.Index;
}

export class HistoryRPC {
export class HistoryRpc {
private constructor(public readonly proto: proto.HistoryRpc) {}

get query(): proto.HistoryQuery | undefined {
Expand All @@ -33,7 +33,7 @@ export class HistoryRPC {
/**
* Create History Query.
*/
static createQuery(params: Params): HistoryRPC {
static createQuery(params: Params): HistoryRpc {
const contentFilters = params.contentTopics.map((contentTopic) => {
return { contentTopic };
});
Expand All @@ -56,7 +56,7 @@ export class HistoryRPC {
// milliseconds 10^-3 to nanoseconds 10^-9
endTime = BigInt(params.endTime.valueOf()) * OneMillion;
}
return new HistoryRPC({
return new HistoryRpc({
requestId: uuid(),
query: {
pubsubTopic: params.pubSubTopic,
Expand All @@ -69,9 +69,9 @@ export class HistoryRPC {
});
}

decode(bytes: Uint8ArrayList): HistoryRPC {
decode(bytes: Uint8ArrayList): HistoryRpc {
const res = proto.HistoryRpc.decode(bytes);
return new HistoryRPC(res);
return new HistoryRpc(res);
}

encode(): Uint8Array {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { BaseProtocol } from "../base_protocol.js";
import { DefaultPubSubTopic } from "../constants.js";
import { toProtoMessage } from "../to_proto_message.js";

import { HistoryRPC, PageDirection, Params } from "./history_rpc.js";
import { HistoryRpc, PageDirection, Params } from "./history_rpc.js";

import HistoryError = proto.HistoryResponse.HistoryError;

Expand Down Expand Up @@ -261,7 +261,7 @@ async function* paginate<T extends IDecodedMessage>(
while (true) {
queryOpts.cursor = currentCursor;

const historyRpcQuery = HistoryRPC.createQuery(queryOpts);
const historyRpcQuery = HistoryRpc.createQuery(queryOpts);

log(
"Querying store peer",
Expand Down

0 comments on commit 81d6638

Please sign in to comment.