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 {