aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/export-import.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-13 17:37:44 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-13 18:31:19 +0200
commit545bb2ed03001cd7a80a90f73eb500f396c043a1 (patch)
tree88b32b1885f848788fb3695b7f5dcb1fc68f14d6 /src/libstore/export-import.cc
parent0a9da00a10fa27a3e3b98439cb0a7d5e79135b58 (diff)
Remove 'accessor' from addToStore()
This is only used by hydra-queue-runner and it's better to implement it there.
Diffstat (limited to 'src/libstore/export-import.cc')
-rw-r--r--src/libstore/export-import.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/export-import.cc b/src/libstore/export-import.cc
index ae31cbcb0..082d0f1d1 100644
--- a/src/libstore/export-import.cc
+++ b/src/libstore/export-import.cc
@@ -51,7 +51,7 @@ void Store::exportPath(const StorePath & path, Sink & sink)
<< 0;
}
-StorePaths Store::importPaths(Source & source, std::shared_ptr<FSAccessor> accessor, CheckSigsFlag checkSigs)
+StorePaths Store::importPaths(Source & source, CheckSigsFlag checkSigs)
{
StorePaths res;
while (true) {
@@ -86,7 +86,7 @@ StorePaths Store::importPaths(Source & source, std::shared_ptr<FSAccessor> acces
// Can't use underlying source, which would have been exhausted
auto source = StringSource { *tee.saved.s };
- addToStore(info, source, NoRepair, checkSigs, accessor);
+ addToStore(info, source, NoRepair, checkSigs);
res.push_back(info.path);
}