aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-08 17:45:19 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-11 13:27:38 +0000
commit073e134de6260de7d90b135b7e173157741d4853 (patch)
treef35f9491e2da62f14caedf00ea9e174eabd8e924 /src/nix
parentaee56e0f895e7b9890d1ec948b24c75478f9e88e (diff)
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.
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/store-delete.cc2
-rw-r--r--src/nix/store-gc.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/store-delete.cc b/src/nix/store-delete.cc
index aa7a8b12f..0de7efaba 100644
--- a/src/nix/store-delete.cc
+++ b/src/nix/store-delete.cc
@@ -33,7 +33,7 @@ struct CmdStoreDelete : StorePathsCommand
void run(ref<Store> store, std::vector<StorePath> && storePaths) override
{
- auto & gcStore = requireGcStore(*store);
+ auto & gcStore = GcStore::require(*store);
for (auto & path : storePaths)
options.pathsToDelete.insert(path);
diff --git a/src/nix/store-gc.cc b/src/nix/store-gc.cc
index 21718dc0c..515f4ffdb 100644
--- a/src/nix/store-gc.cc
+++ b/src/nix/store-gc.cc
@@ -34,7 +34,7 @@ struct CmdStoreGC : StoreCommand, MixDryRun
void run(ref<Store> store) override
{
- auto & gcStore = requireGcStore(*store);
+ auto & gcStore = GcStore::require(*store);
options.action = dryRun ? GCOptions::gcReturnDead : GCOptions::gcDeleteDead;
GCResults results;