about summary refs log tree commit diff
path: root/third_party/nix/src/libstore/rpc-store.hh
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-08-01T19·44-0400
committerglittershark <grfn@gws.fyi>2020-08-02T02·03+0000
commit2646e57aae5aedc3d07d8596aa6a61048b312e54 (patch)
tree17be4bec752472e42b20fa52b5840d99cc44aae7 /third_party/nix/src/libstore/rpc-store.hh
parent1094e356df316e28d8b7ee8ef9844d0ec7853872 (diff)
fix(3p/nix): Prepend unix:// to daemon socket r/1538
Prepend the unix:// URI scheme to the daemon socket so that grpc knows
we want to connect to a unix socket rather than another type of URI. As
part of debugging this I made the failure message for the RPCStore
include the URI, which I'm leaving in since it'll be nice to have.

Change-Id: I6e70596895117b9a0d53fe2a61d8542ceb64c940
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1543
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/nix/src/libstore/rpc-store.hh')
-rw-r--r--third_party/nix/src/libstore/rpc-store.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/nix/src/libstore/rpc-store.hh b/third_party/nix/src/libstore/rpc-store.hh
index 332d1f4ba1..0ef24e22b7 100644
--- a/third_party/nix/src/libstore/rpc-store.hh
+++ b/third_party/nix/src/libstore/rpc-store.hh
@@ -137,6 +137,8 @@ class RpcStore : public LocalFSStore, public virtual Store {
  private:
   std::optional<std::string> uri_;
   std::unique_ptr<nix::proto::WorkerService::Stub> stub_;
+
+  void const SuccessOrThrow(const grpc::Status& status) const;
 };
 
 }  // namespace nix::store