Skip to content

Commit

Permalink
three methods updated to virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNewAutonomy committed Jun 9, 2024
1 parent bd2f370 commit 220db86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Nethermind/Nethermind.Db.Rocks/DbOnTheRocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class DbOnTheRocks : IDb, ITunableDb

internal DbOptions? DbOptions { get; private set; }

public string Name { get; }
public virtual string Name { get; }

private static long _maxRocksSize;

Expand Down Expand Up @@ -305,12 +305,12 @@ private void RepairIfCorrupted(DbOptions dbOptions)
_fileSystem.File.Delete(corruptMarker);
}

protected internal void UpdateReadMetrics()
protected internal virtual void UpdateReadMetrics()
{
Interlocked.Increment(ref _totalReads);
}

protected internal void UpdateWriteMetrics()
protected internal virtual void UpdateWriteMetrics()
{
Interlocked.Increment(ref _totalWrites);
}
Expand Down

0 comments on commit 220db86

Please sign in to comment.