Pass gossiper to api::set_task_manager. It will be used later for host_id to ip transition.
25 lines
497 B
C++
25 lines
497 B
C++
/*
|
|
* Copyright (C) 2022-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/sharded.hh>
|
|
#include "api/api_init.hh"
|
|
#include "db/config.hh"
|
|
|
|
namespace tasks {
|
|
class task_manager;
|
|
}
|
|
|
|
namespace api {
|
|
|
|
void set_task_manager(http_context& ctx, httpd::routes& r, sharded<tasks::task_manager>& tm, db::config& cfg, sharded<gms::gossiper>& gossiper);
|
|
void unset_task_manager(http_context& ctx, httpd::routes& r);
|
|
|
|
}
|