aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/remote-store.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-04-05 09:24:42 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-04-05 09:35:55 -0400
commit9dfb97c987d8b9d6a3d15f016e40f22f91deb764 (patch)
tree4c53fc227531604bced5575370f8406d97e79052 /src/libstore/remote-store.cc
parent4fe41c6db390c0295d20f6365ebedaec8ec79e1d (diff)
"newtype" BuildableReq
This makes for better types errors and allows us to give it methods.
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r--src/libstore/remote-store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index de1c95ed6..cb6402213 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -55,12 +55,12 @@ void write(const Store & store, Sink & out, const ContentAddress & ca)
BuildableReq read(const Store & store, Source & from, Phantom<BuildableReq> _)
{
auto s = readString(from);
- return parseBuildableReq(store, s);
+ return BuildableReq::parse(store, s);
}
void write(const Store & store, Sink & out, const BuildableReq & req)
{
- out << to_string(store, req);
+ out << req.to_string(store);
}