Skip to content

Commit

Permalink
docs(advisor): Say that the original provider is kept in merged results
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 5, 2024
1 parent d2ed373 commit 6ebb731
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions advisor/src/main/kotlin/Advisor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class Advisor(
providerResults
}
}.forEach { providerResults ->
// Merge results from different providers into a single map keyed by the package ID. The original
// provider is still maintained as part of the AdvisorResult's AdvisorDetails.
providerResults.await().forEach { (pkg, advisorResults) ->
results.merge(pkg.id, listOf(advisorResults)) { existingResults, additionalResults ->
existingResults + additionalResults
Expand Down

0 comments on commit 6ebb731

Please sign in to comment.