diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-08-06 18:04:13 -0400 |
---|---|---|
committer | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-08-06 18:04:13 -0400 |
commit | 9ab07e99f527d1fa3adfa02839da477a1528d64b (patch) | |
tree | be1dd8e0671452ac4d62d5c7c13bbcb761fe0f52 /src/libstore/export-import.cc | |
parent | 3d8240c32eedd0809450be52e4ac7625ffdad9aa (diff) |
Use template structs instead of phantoms
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 7551294f7..e2e52b0af 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); - nix::worker_proto::write(*this, teeSink, info->references); + WorkerProto<StorePathSet>::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 = nix::worker_proto::read(*this, source, Phantom<StorePathSet> {}); + info.references = WorkerProto<StorePathSet>::read(*this, source); auto deriver = readString(source); if (deriver != "") |