From 323ebede0fac60cd6e99f21e592a41474c6d32b9 Mon Sep 17 00:00:00 2001 From: Jakub Majocha <1760221+majocha@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:31:53 +0100 Subject: [PATCH] format --- src/Compiler/Driver/GraphChecking/GraphProcessing.fs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Compiler/Driver/GraphChecking/GraphProcessing.fs b/src/Compiler/Driver/GraphChecking/GraphProcessing.fs index 7f624ef90b5..37d7428991d 100644 --- a/src/Compiler/Driver/GraphChecking/GraphProcessing.fs +++ b/src/Compiler/Driver/GraphChecking/GraphProcessing.fs @@ -221,10 +221,13 @@ let processGraphAsync<'Item, 'Result when 'Item: equality and 'Item: comparison> let rec queueNode node = async { - try + try do! processNode node - with - | ex -> return raise (GraphProcessingException($"[*] Encountered exception when processing item '{node.Info.Item}': {ex.Message}", ex)) + with ex -> + return + raise ( + GraphProcessingException($"[*] Encountered exception when processing item '{node.Info.Item}': {ex.Message}", ex) + ) } and processNode (node: GraphNode<'Item, 'Result>) = @@ -244,7 +247,6 @@ let processGraphAsync<'Item, 'Result when 'Item: equality and 'Item: comparison> // Note: We cannot read 'dependent.ProcessedDepsCount' again to avoid returning the same item multiple times. pdc = dependent.Info.Deps.Length) - do! unblockedDependents |> Array.map queueNode |> Async.Parallel |> Async.Ignore }