Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchhill committed Sep 27, 2024
1 parent 9deb8ef commit 63125bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Nethermind/Nethermind.Shutter/ShutterBlockHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ private void OnNewHeadBlock(object? _, BlockEventArgs e)

if (_blockWaitTasks.Remove(slot, out Dictionary<ulong, BlockWaitTask>? waitTasks))
{
waitTasks.ForEach(waitTask => {
waitTasks.ForEach(waitTask =>
{
waitTask.Value.Tcs.TrySetResult(head);
waitTask.Value.Dispose();
});
Expand Down Expand Up @@ -204,7 +205,8 @@ private void CheckAllValidatorsRegistered(BlockHeader parent, Dictionary<ulong,
public void Dispose()
{
_blockTree.NewHeadBlock -= OnNewHeadBlock;
_blockWaitTasks.ForEach(x => x.Value.ForEach(waitTask => {
_blockWaitTasks.ForEach(x => x.Value.ForEach(waitTask =>
{
waitTask.Value.CancellationRegistration.Dispose();
waitTask.Value.TimeoutCancellationRegistration.Dispose();
}));
Expand Down
3 changes: 2 additions & 1 deletion src/Nethermind/Nethermind.Shutter/ShutterTxSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public ShutterTransactions LoadTransactions(Block? head, BlockHeader parentHeade
{
if (_keyWaitTasks.Remove(keys.Slot, out Dictionary<ulong, (TaskCompletionSource Tcs, CancellationTokenRegistration Ctr)>? slotWaitTasks))
{
slotWaitTasks.ForEach(waitTask => {
slotWaitTasks.ForEach(waitTask =>
{
waitTask.Value.Tcs.TrySetResult();
waitTask.Value.Ctr.Dispose();
});
Expand Down

0 comments on commit 63125bb

Please sign in to comment.