Skip to content

Commit

Permalink
Update src/libstore/store-api.cc
Browse files Browse the repository at this point in the history
Revert back to basic constructor in store-api.cc

Co-authored-by: John Ericson <git@JohnEricson.me>
  • Loading branch information
fzakaria and Ericson2314 authored Jul 15, 2024
1 parent 7169905 commit 4af5092
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/libstore/store-api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1289,12 +1289,7 @@ ref<Store> openStore(StoreReference && storeURI)
if (access(stateDir.c_str(), R_OK | W_OK) == 0)
return std::make_shared<LocalStore>(params);
else if (pathExists(settings.nixDaemonSocketFile))
// TODO(fzakaria): A bit gross that we now pass empty string
// but this is knowing that empty string will later default to the same
// nixDaemonSocketFile. Why don't we just wire it all through?
// I believe there are cases where it will live reload so we want to
// continue to account for that.
return std::make_shared<UDSRemoteStore>(UDSRemoteStoreConfig::scheme, "", params);
return std::make_shared<UDSRemoteStore>(params);
#if __linux__
else if (!pathExists(stateDir)
&& params.empty()
Expand Down

0 comments on commit 4af5092

Please sign in to comment.