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

fix: typos in comment #6360

Merged
merged 1 commit into from
Dec 13, 2023
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
12 changes: 6 additions & 6 deletions src/Nethermind/Nethermind.Crypto/AesEngineX86Intrinsic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public Encode128(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -247,7 +247,7 @@ public Decode128(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -277,7 +277,7 @@ public Encode192(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -309,7 +309,7 @@ public Decode192(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -341,7 +341,7 @@ public Encode256(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down Expand Up @@ -375,7 +375,7 @@ public Decode256(Vector128<byte>[] roundKeys) : base(roundKeys) { }

public override void ProcessRounds(ref Vector128<byte> state)
{
// Take local refence to array so Jit can reason length doesn't change in method
// Take local reference to array so Jit can reason length doesn't change in method
Vector128<byte>[] roundKeys = _roundKeys;
{
// Get the Jit to bounds check once rather than each increasing array access
Expand Down
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Db.Rocks/DbOnTheRocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private RocksDb Init(string basePath, string dbPath, IDbConfig dbConfig, ILogMan
}
catch (RocksDbException x) when (x.Message.Contains("LOCK"))
{
if (_logger.IsWarn) _logger.Warn("If your database did not close properly you need to call 'find -type f -name '*LOCK*' -delete' from the databse folder");
if (_logger.IsWarn) _logger.Warn("If your database did not close properly you need to call 'find -type f -name '*LOCK*' -delete' from the database folder");
throw;
}
catch (RocksDbSharpException x)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void ProcessCompactionStats(string compactionStatsString)
}
else
{
_logger.Warn($"No RocksDB compaction stats available for {_dbName} databse.");
_logger.Warn($"No RocksDB compaction stats available for {_dbName} database.");
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Db.Test/DbMetricsUpdaterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void ProcessCompactionStats_EmptyDump()

Assert.That(Metrics.DbStats.Count, Is.EqualTo(0));

logger.Received().Warn("No RocksDB compaction stats available for Test databse.");
logger.Received().Warn("No RocksDB compaction stats available for Test database.");
}

[Test]
Expand All @@ -99,7 +99,7 @@ public void ProcessCompactionStats_NullDump()

Assert.That(Metrics.DbStats.Count, Is.EqualTo(0));

logger.Received().Warn("No RocksDB compaction stats available for Test databse.");
logger.Received().Warn("No RocksDB compaction stats available for Test database.");
}
}
}
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Serialization.Rlp/Rlp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ public Span<byte> DecodeByteArraySpan()
if (lengthOfLength > 4)
{
// strange but needed to pass tests - seems that spec gives int64 length and tests int32 length
throw new RlpException("Expected length of lenth less or equal 4");
throw new RlpException("Expected length of length less or equal 4");
}

int length = DeserializeLength(lengthOfLength);
Expand Down