From ce9acd5f973db3a987256fd987921f16275f7c19 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Fri, 6 Jun 2025 18:09:46 +0200 Subject: [PATCH] libstore: use proper connection handle for narFromPath this could've just ignored exceptions thrown by the remote. in the current implementation there's no way such an exception could have propagated to the client though, so there's no change in behavior. Change-Id: Ide03bda1cb0ad7fb5f27b4ee5d16efd6c2b635ba --- lix/libstore/remote-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lix/libstore/remote-store.cc b/lix/libstore/remote-store.cc index 7600679d4..ffc611bfb 100644 --- a/lix/libstore/remote-store.cc +++ b/lix/libstore/remote-store.cc @@ -734,7 +734,7 @@ RemoteStore::Connection::~Connection() kj::Promise>> RemoteStore::narFromPath(const StorePath & path) try { - auto conn(TRY_AWAIT(connections->get())); + auto conn(TRY_AWAIT(getConnection())); conn->to << WorkerProto::Op::NarFromPath << printStorePath(path); conn->processStderr(); co_return make_box_ptr([](auto conn) -> WireFormatGenerator {