diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-27 12:22:09 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 12:58:35 +0200 |
commit | f82adab238f4b45d43049687c8e52bf7372ba053 (patch) | |
tree | f09ba0ef72ef1c13122233960759cd5b938249d5 /src/buildtool/main/main.cpp | |
parent | 5bc6265b2ffe43370b4cddd0a9e4c09b059ef131 (diff) | |
download | justbuild-f82adab238f4b45d43049687c8e52bf7372ba053.tar.gz |
Pass StorageConfig and Storage to Serve
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r-- | src/buildtool/main/main.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 3be560bb..39806c68 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -814,10 +814,15 @@ auto main(int argc, char* argv[]) -> int { /*repo_config=*/nullptr, &*auth_config, RemoteExecutionConfig::RemoteAddress()}; - auto serve = ServeApi::Create(*serve_config, &serve_apis); + auto serve = ServeApi::Create( + *serve_config, &Storage::Instance(), &serve_apis); bool with_execute = not RemoteExecutionConfig::RemoteAddress(); - return serve_server->Run( - *serve_config, serve, serve_apis, with_execute) + return serve_server->Run(*serve_config, + StorageConfig::Instance(), + Storage::Instance(), + serve, + serve_apis, + with_execute) ? kExitSuccess : kExitFailure; } @@ -903,7 +908,7 @@ auto main(int argc, char* argv[]) -> int { #ifndef BOOTSTRAP_BUILD_TOOL std::optional<ServeApi> serve = - ServeApi::Create(*serve_config, &main_apis); + ServeApi::Create(*serve_config, &Storage::Instance(), &main_apis); #else std::optional<ServeApi> serve; #endif // BOOTSTRAP_BUILD_TOOL |