diff options
author | eldritch horrors <pennae@lix.systems> | 2024-07-25 18:05:42 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-29 22:16:11 +0000 |
commit | 548c973e8282bbec5b14f3860218b23564dc0381 (patch) | |
tree | 674d469bc6f3ca18649f6cd8afb387668ddac0e9 /src/libstore/build/drv-output-substitution-goal.cc | |
parent | 6abad7cb238c5c7bf59a83bed55e7590c544fc2e (diff) |
libstore: remove Worker::updateProgress
just update progress every time a goal has returned from work(). there
seem to be no performance penalties, and the code is much simpler now.
Change-Id: I288ee568b764ee61f40a498d986afda49987cb50
Diffstat (limited to 'src/libstore/build/drv-output-substitution-goal.cc')
-rw-r--r-- | src/libstore/build/drv-output-substitution-goal.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libstore/build/drv-output-substitution-goal.cc b/src/libstore/build/drv-output-substitution-goal.cc index 735a07f96..4be48c41d 100644 --- a/src/libstore/build/drv-output-substitution-goal.cc +++ b/src/libstore/build/drv-output-substitution-goal.cc @@ -48,7 +48,6 @@ void DrvOutputSubstitutionGoal::tryNext() maintainRunningSubstitutions = std::make_unique<MaintainCount<uint64_t>>(worker.runningCASubstitutions); - worker.updateProgress(); if (subs.size() == 0) { /* None left. Terminate this goal and let someone else deal @@ -62,7 +61,6 @@ void DrvOutputSubstitutionGoal::tryNext() if (substituterFailed) { worker.failedSubstitutions++; - worker.updateProgress(); } return; |