Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed May 29, 2024
1 parent 9cc4b91 commit 0465a2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ long ComputeUpperBoundIndex(long count)
protected abstract ValueTask ApplyAsync(LogEntry entry);

private ValueTask ApplyCoreAsync(LogEntry entry)
=> entry.IsEmpty ? new() : ApplyAsync(entry); // skip empty log entry
=> entry.IsEmpty ? ValueTask.CompletedTask : ApplyAsync(entry); // skip empty log entry

[AsyncMethodBuilder(typeof(PoolingAsyncValueTaskMethodBuilder))]
private async ValueTask ApplyAsync(int sessionId, long startIndex, CancellationToken token)
Expand Down

0 comments on commit 0465a2c

Please sign in to comment.