From 1ea1e378de22bf32b5ccc1edf66798ab91299ac7 Mon Sep 17 00:00:00 2001 From: Matej Urbas Date: Mon, 8 May 2023 19:21:57 +0100 Subject: removes MaxSubstitutionJobsSetting --- src/libstore/globals.hh | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'src/libstore/globals.hh') diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index f1e1e4b22..c41125523 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -29,21 +29,6 @@ struct MaxBuildJobsSetting : public BaseSetting unsigned int parse(const std::string & str) const override; }; -struct MaxSubstitutionJobsSetting : public BaseSetting -{ - MaxSubstitutionJobsSetting(Config * options, - unsigned int def, - const std::string & name, - const std::string & description, - const std::set & aliases = {}) - : BaseSetting(def, true, name, description, aliases) - { - options->addSetting(this); - } - - unsigned int parse(const std::string & str) const override; -}; - struct PluginFilesSetting : public BaseSetting { bool pluginsLoaded = false; @@ -174,15 +159,12 @@ public: )", {"build-max-jobs"}}; - MaxSubstitutionJobsSetting maxSubstitutionJobs{ + Setting maxSubstitutionJobs{ this, 16, "max-substitution-jobs", R"( This option defines the maximum number of substitution jobs that Nix will try to run in parallel. The default is `16`. The minimum value - one can choose is `1` and lower values will be interpreted as `1`. The - special value `auto` causes Nix to use the number of CPUs in your - system. It can be overridden using the `--max-substitution-jobs` - command line switch. + one can choose is `1` and lower values will be interpreted as `1`. )", {"substitution-max-jobs"}}; -- cgit v1.2.3