aboutsummaryrefslogtreecommitdiff
path: root/src/nix-collect-garbage
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-collect-garbage
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-collect-garbage')
-rw-r--r--src/nix-collect-garbage/nix-collect-garbage.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-collect-garbage/nix-collect-garbage.cc b/src/nix-collect-garbage/nix-collect-garbage.cc
index 4b28ea6a4..b61f0e640 100644
--- a/src/nix-collect-garbage/nix-collect-garbage.cc
+++ b/src/nix-collect-garbage/nix-collect-garbage.cc
@@ -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);