From 461ba224785cba270b37375d9dc25f06a630d723 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 26 Jul 2024 12:50:44 +0200 Subject: Pass LocalContext and RemoteContext to ServeApi Also switch to using the fields from RemoteContext instances instead of those from ApiBundle. --- src/other_tools/just_mr/fetch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/other_tools/just_mr/fetch.cpp') diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp index 8da3647b..088c9ace 100644 --- a/src/other_tools/just_mr/fetch.cpp +++ b/src/other_tools/just_mr/fetch.cpp @@ -454,7 +454,8 @@ auto MultiRepoFetch(std::shared_ptr const& config, return kExitConfigError; } - auto serve = ServeApi::Create(*serve_config, &storage, &apis); + auto serve = + ServeApi::Create(*serve_config, &local_context, &remote_context, &apis); // check configuration of the serve endpoint provided if (serve) { // if we have a remote endpoint explicitly given by the user, it must -- cgit v1.2.3