Skip to content

Commit edf977f

Browse files
committed
Fixed pattern matching
1 parent 54320e6 commit edf977f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cluster/DotNext.AspNetCore.Cluster/Net/Cluster/Consensus/Raft/BackgroundCompactionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal sealed class BackgroundCompactionService(PersistentState state) : Backg
1111
private readonly Func<CancellationToken, ValueTask>? compaction = state switch
1212
{
1313
ILogCompactionSupport support => support.ForceCompactionAsync,
14-
MemoryBasedStateMachine mbsm when mbsm.IsBackgroundCompaction => mbsm.ForceIncrementalCompactionAsync,
14+
MemoryBasedStateMachine { IsBackgroundCompaction: true } mbsm => mbsm.ForceIncrementalCompactionAsync,
1515
_ => null,
1616
};
1717

0 commit comments

Comments
 (0)