Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: InventiveCoder <[email protected]>
  • Loading branch information
InventiveCoder committed Dec 10, 2024
1 parent 3552019 commit e155daf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit e155daf

Please sign in to comment.