1
0
Fork 0
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:
John Ericson 2022-03-08 17:45:19 +00:00
parent aee56e0f89
commit 073e134de6
7 changed files with 12 additions and 12 deletions

View file

@ -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);