From 58a91d70c9c6f22bbb5425f1e9973befe3fdebfb Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sat, 20 Jul 2024 21:05:19 +0200 Subject: libstore: use std::async instead of Goal threads the goals are either already using std::async and merely forgot to remove std::thread vestiges or they emulate async with threads and promises. we can simply use async directly everywhere for clarity. Change-Id: I3f05098310a25984f10fff1e68c573329002b500 --- src/libstore/build/drv-output-substitution-goal.hh | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/libstore/build/drv-output-substitution-goal.hh') diff --git a/src/libstore/build/drv-output-substitution-goal.hh b/src/libstore/build/drv-output-substitution-goal.hh index 008b211a1..47b9ecc49 100644 --- a/src/libstore/build/drv-output-substitution-goal.hh +++ b/src/libstore/build/drv-output-substitution-goal.hh @@ -4,7 +4,6 @@ #include "store-api.hh" #include "goal.hh" #include "realisation.hh" -#include #include namespace nix { @@ -41,11 +40,6 @@ class DrvOutputSubstitutionGoal : public Goal { */ std::shared_ptr sub; - /** - * The substituter thread. - */ - std::thread thr; - std::unique_ptr> maintainRunningSubstitutions; struct DownloadState -- cgit v1.2.3