We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54320e6 commit edf977fCopy full SHA for edf977f
src/cluster/DotNext.AspNetCore.Cluster/Net/Cluster/Consensus/Raft/BackgroundCompactionService.cs
@@ -11,7 +11,7 @@ internal sealed class BackgroundCompactionService(PersistentState state) : Backg
11
private readonly Func<CancellationToken, ValueTask>? compaction = state switch
12
{
13
ILogCompactionSupport support => support.ForceCompactionAsync,
14
- MemoryBasedStateMachine mbsm when mbsm.IsBackgroundCompaction => mbsm.ForceIncrementalCompactionAsync,
+ MemoryBasedStateMachine { IsBackgroundCompaction: true } mbsm => mbsm.ForceIncrementalCompactionAsync,
15
_ => null,
16
};
17
0 commit comments