diff options
Diffstat (limited to 'src/other_tools/just_mr/setup.cpp')
-rw-r--r-- | src/other_tools/just_mr/setup.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/other_tools/just_mr/setup.cpp b/src/other_tools/just_mr/setup.cpp index 8b464fce..b29e9a5c 100644 --- a/src/other_tools/just_mr/setup.cpp +++ b/src/other_tools/just_mr/setup.cpp @@ -234,10 +234,13 @@ auto MultiRepoSetup(std::shared_ptr<Configuration> const& config, ApiBundle{.hash_function = hash_fct, .local = native_local_api, .remote = has_remote_api ? remote_api : native_local_api}; - auto serve = ServeApi::Create(*serve_config, - &native_local_context, /*unused*/ - &remote_context, - &apis /*unused*/); + auto serve = ServeApi::Create( + *serve_config, + compat_local_context != nullptr + ? &*compat_local_context + : &native_local_context, // defines the client's hash_function + &remote_context, + &apis /*unused*/); // check configuration of the serve endpoint provided if (serve) { |