diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-04 19:02:05 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-04 19:02:05 +0000 |
commit | 2f2ae993dc6d35e9c0e66e893e5d615116d42917 (patch) | |
tree | a7a587fe16a013445cf27083edd75a73a24303e3 /src/libstore/export-import.cc | |
parent | fbeb8695fb0d67d0be0da78535b0a1e1a8739a5b (diff) |
WIP systematize more of the worker protocol
This refactor should *not* change the wire protocol.
Diffstat (limited to 'src/libstore/export-import.cc')
-rw-r--r-- | src/libstore/export-import.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/export-import.cc b/src/libstore/export-import.cc index a0fc22264..c20c56156 100644 --- a/src/libstore/export-import.cc +++ b/src/libstore/export-import.cc @@ -45,7 +45,7 @@ void Store::exportPath(const StorePath & path, Sink & sink) teeSink << exportMagic << printStorePath(path); - writeStorePaths(*this, teeSink, info->references); + write(*this, teeSink, info->references); teeSink << (info->deriver ? printStorePath(*info->deriver) : "") << 0; @@ -73,7 +73,7 @@ StorePaths Store::importPaths(Source & source, CheckSigsFlag checkSigs) //Activity act(*logger, lvlInfo, format("importing path '%s'") % info.path); - info.references = readStorePaths<StorePathSet>(*this, source); + info.references = read(*this, source, Proxy<StorePathSet> {}); auto deriver = readString(source); if (deriver != "") |