Skip to content

Commit

Permalink
use named tuple in method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Mecit-SA committed Nov 22, 2024
1 parent 609e3d5 commit 31732a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Mimir.Worker/Handler/BaseDiffHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
}
}

protected virtual async Task<(long, long, long, long)> CalculateCurrentAndTargetIndexes(
CancellationToken stoppingToken
)
protected virtual async Task<(
long CurrentBaseIndex,
long CurrentTargetIndex,
long CurrentIndexOnChain,
long IndexDifference
)> CalculateCurrentAndTargetIndexes(CancellationToken stoppingToken)
{
var syncedIndex = await GetSyncedBlockIndex(stoppingToken);
var currentBaseIndex = syncedIndex;
Expand Down

0 comments on commit 31732a9

Please sign in to comment.