Skip to content

Commit

Permalink
refactor(database): streamline model merging (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver authored May 22, 2024
1 parent edd1a89 commit 5ec360b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions service/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ pub async fn cost_models(
models = models
.into_iter()
.map(|model| merge_global(model, &global_model))
.collect();

// Inject a cost model for all deployments that don't have one
models = models
.into_iter()
// Inject a cost model for all deployments that don't have one
.chain(
deployments_without_models
.into_iter()
Expand Down

0 comments on commit 5ec360b

Please sign in to comment.