mirror of
https://github.com/NixOS/nix
synced 2025-06-30 15:48:00 +02:00
Get rid of virtual Goal::init()
Now, each class provides the initial coroutine by value. This avoids some sketchy virtual function stuff, and will also be further put to good use in the next commit.
This commit is contained in:
parent
0d3750e902
commit
c1085ce849
7 changed files with 9 additions and 24 deletions
|
@ -12,7 +12,7 @@ DrvOutputSubstitutionGoal::DrvOutputSubstitutionGoal(
|
|||
Worker & worker,
|
||||
RepairFlag repair,
|
||||
std::optional<ContentAddress> ca)
|
||||
: Goal(worker)
|
||||
: Goal(worker, init())
|
||||
, id(id)
|
||||
{
|
||||
name = fmt("substitution of '%s'", id.to_string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue