Skip to content

Commit

Permalink
Always wait for address prewarmer; even if cancelled (#7489)
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored Sep 25, 2024
1 parent 339ec74 commit fdd9138
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ public Task PreWarmCaches(Block suggestedBlock, Hash256? parentStateRoot, Access

private void PreWarmCachesParallel(Block suggestedBlock, Hash256 parentStateRoot, ParallelOptions parallelOptions, AddressWarmer addressWarmer, CancellationToken cancellationToken)
{
if (cancellationToken.IsCancellationRequested) return;

try
{
if (cancellationToken.IsCancellationRequested) return;

if (_logger.IsDebug) _logger.Debug($"Started pre-warming caches for block {suggestedBlock.Number}.");

IReleaseSpec spec = specProvider.GetSpec(suggestedBlock.Header);
Expand Down

0 comments on commit fdd9138

Please sign in to comment.