Skip to content

Commit

Permalink
chore(src/Nethermind): typo fix (#6363)
Browse files Browse the repository at this point in the history
* typo fix

* typo fix

* typo fix

* typo fix
  • Loading branch information
dzizazda authored Dec 13, 2023
1 parent af04899 commit 7a768f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Network/Metrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Nethermind.Network
{
//TODO: consult on use of metric disabeling flags!
//TODO: consult on use of metric disabling flags!
public static class Metrics
{
[KeyIsLabel("reason")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected override void ChannelRead0(IChannelHandlerContext ctx, ZeroPacket inpu
int uncompressedLength = SnappyCodec.GetUncompressedLength(content.Array, content.ArrayOffset + content.ReaderIndex, content.ReadableBytes);
if (uncompressedLength > SnappyParameters.MaxSnappyLength)
{
throw new Exception("Max message size exceeeded"); // TODO: disconnect here
throw new Exception("Max message size exceeded"); // TODO: disconnect here
}

if (content.ReadableBytes > SnappyParameters.MaxSnappyLength / 4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public override void NotifyOfNewBlock(Block block, SendBlockMode mode)
{
BlockHeader firstCommonAncestor = SyncServer.FindLowestCommonAncestor(block.Header, _lastSentBlock);
if (firstCommonAncestor is null)
throw new SubprotocolException($"Unable to send announcment to LES peer - No common ancestor found between {block.Header} and {_lastSentBlock}");
throw new SubprotocolException($"Unable to send announcement to LES peer - No common ancestor found between {block.Header} and {_lastSentBlock}");
announceMessage.ReorgDepth = _lastSentBlock.Number - firstCommonAncestor.Number;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Network/PeerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private async Task RunPeerUpdateLoop()
if (remainingCandidates.Count == 0)
{
// Delay to prevent high CPU use. There is a shortcut path for newly discovered peer, so having
// a lower delay probably wont do much.
// a lower delay probably won't do much.
await Task.Delay(TimeSpan.FromSeconds(1));
continue;
}
Expand Down

0 comments on commit 7a768f7

Please sign in to comment.