Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comment [skip ci] #267

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/node/src/network/discv5/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function enrRelevance(enr: ENR): ENRRelevance {
// A consumer _should_ call `close` before terminating the worker to cleanly exit discv5 before destroying the thread
// A `setEnrValue` function is also provided to update the host ENR key-values shared in the discv5 network.

// Cloned data from instatiation
// Cloned data from instantiation
const workerData = worker.workerData as Discv5WorkerData;
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
if (!workerData) throw Error("workerData must be defined");
Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/network/gossip/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class GossipTopicCache implements IGossipTopicCache {
}

/**
* Stringify a GossipTopic into a spec-ed formated topic string
* Stringify a GossipTopic into a spec-ed formatted topic string
*/
export function stringifyGossipTopic(topic: GossipTopic): string {
const topicType = stringifyGossipTopicType(topic);
Expand All @@ -50,7 +50,7 @@ export function stringifyGossipTopic(topic: GossipTopic): string {
}

/**
* Stringify a GossipTopic into a spec-ed formated partial topic string
* Stringify a GossipTopic into a spec-ed formatted partial topic string
*/
function stringifyGossipTopicType(topic: GossipTopic): string {
switch (topic.type) {
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/network/processor/gossipValidatorFn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type ValidatorFnModules = {};
* - The message.data should already by uncompressed when computing its msgID
*
* All logging and metrics associated with gossip object validation should happen in this function. We want to know
* - In debug logs what objects are we processing, the result and some succint metadata
* - In debug logs what objects are we processing, the result and some succinct metadata
* - In metrics what's the throughput and ratio of accept/ignore/reject per type
*
* @see getGossipHandlers for reasoning on why GossipHandlerFn are used for gossip validation.
Expand Down
Loading