1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +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

@ -645,7 +645,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
Path path = absPath(readString(from));
logger->startWork();
auto & gcStore = requireGcStore(*store);
auto & gcStore = GcStore::require(*store);
gcStore.addIndirectRoot(path);
logger->stopWork();
@ -663,7 +663,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
case wopFindRoots: {
logger->startWork();
auto & gcStore = requireGcStore(*store);
auto & gcStore = GcStore::require(*store);
Roots roots = gcStore.findRoots(!trusted);
logger->stopWork();
@ -695,7 +695,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
logger->startWork();
if (options.ignoreLiveness)
throw Error("you are not allowed to ignore liveness");
auto & gcStore = requireGcStore(*store);
auto & gcStore = GcStore::require(*store);
gcStore.collectGarbage(options, results);
logger->stopWork();