mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Rename requireGcStore
to GcStore::require
I should have done this to begin with. This will be nicer once more Store sub-interfaces exist too, to illustrate the pattern.
This commit is contained in:
parent
aee56e0f89
commit
073e134de6
7 changed files with 12 additions and 12 deletions
|
@ -81,7 +81,7 @@ static int main_nix_collect_garbage(int argc, char * * argv)
|
|||
// Run the actual garbage collector.
|
||||
if (!dryRun) {
|
||||
auto store = openStore();
|
||||
auto & gcStore = requireGcStore(*store);
|
||||
auto & gcStore = GcStore::require(*store);
|
||||
options.action = GCOptions::gcDeleteDead;
|
||||
GCResults results;
|
||||
PrintFreed freed(true, results);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue