Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
majocha committed Oct 29, 2024
1 parent 8d6290e commit 323ebed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Compiler/Driver/GraphChecking/GraphProcessing.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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>) =
Expand All @@ -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
}

Expand Down

0 comments on commit 323ebed

Please sign in to comment.