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/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/substitution-goal.cc')
-rw-r--r-- | src/libstore/build/substitution-goal.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libstore/build/substitution-goal.cc b/src/libstore/build/substitution-goal.cc index 1330f061c..a88bdea26 100644 --- a/src/libstore/build/substitution-goal.cc +++ b/src/libstore/build/substitution-goal.cc @@ -86,7 +86,6 @@ void PathSubstitutionGoal::tryNext() if (substituterFailed) { worker.failedSubstitutions++; - worker.updateProgress(); } return; @@ -150,8 +149,6 @@ void PathSubstitutionGoal::tryNext() ? std::make_unique<MaintainCount<uint64_t>>(worker.expectedDownloadSize, narInfo->fileSize) : nullptr; - worker.updateProgress(); - /* Bail out early if this substituter lacks a valid signature. LocalStore::addToStore() also checks for this, but only after we've downloaded the path. */ @@ -210,7 +207,6 @@ void PathSubstitutionGoal::tryToRun() } maintainRunningSubstitutions = std::make_unique<MaintainCount<uint64_t>>(worker.runningSubstitutions); - worker.updateProgress(); outPipe.create(); @@ -289,8 +285,6 @@ void PathSubstitutionGoal::finished() worker.doneNarSize += maintainExpectedNar->delta; maintainExpectedNar.reset(); - worker.updateProgress(); - done(ecSuccess, BuildResult::Substituted); } |