Skip to content

Commit

Permalink
LibSQL: Use Core::Environment instead of Core::System::*env()
Browse files Browse the repository at this point in the history
  • Loading branch information
AtkinsSJ committed Feb 27, 2024
1 parent f4e6f5c commit c6b9ce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Userland/Libraries/LibSQL/SQLClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#if !defined(AK_OS_SERENITY)
# include <LibCore/Directory.h>
# include <LibCore/Environment.h>
# include <LibCore/SocketAddress.h>
# include <LibCore/StandardPaths.h>
# include <LibCore/System.h>
Expand Down Expand Up @@ -82,7 +83,7 @@ static ErrorOr<void> launch_server(ByteString const& socket_path, ByteString con
server_fd = TRY(Core::System::dup(server_fd));

auto takeover_string = ByteString::formatted("SQLServer:{}", server_fd);
TRY(Core::System::setenv("SOCKET_TAKEOVER"sv, takeover_string, true));
TRY(Core::Environment::set("SOCKET_TAKEOVER"sv, takeover_string, Core::Environment::Overwrite::Yes));

ErrorOr<void> result;
for (auto const& server_path : candidate_server_paths) {
Expand Down

0 comments on commit c6b9ce2

Please sign in to comment.