Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no ci][coro_io] fix rename #734

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions include/ylt/coro_io/load_blancer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class load_blancer {
using client_pools_t = client_pools<client_t, io_context_pool_t>;

public:
struct load_blancer_config {
struct load_blance_config {
typename client_pool_t::pool_config pool_config;
load_blancer_algorithm lba = load_blancer_algorithm::RR;
~load_blancer_config(){};
~load_blance_config(){};
};

private:
Expand Down Expand Up @@ -189,7 +189,7 @@ class load_blancer {

static load_blancer create(
const std::vector<std::string_view>& hosts,
const load_blancer_config& config = {},
const load_blance_config& config = {},
const std::vector<int>& weights = {},
client_pools_t& client_pools =
g_clients_pool<client_t, io_context_pool_t>()) {
Expand All @@ -207,7 +207,7 @@ class load_blancer {

private:
void init(const std::vector<std::string_view>& hosts,
const load_blancer_config& config, const std::vector<int>& weights,
const load_blance_config& config, const std::vector<int>& weights,
client_pools_t& client_pools) {
config_ = config;
client_pools_.reserve(hosts.size());
Expand All @@ -233,7 +233,7 @@ class load_blancer {
}
return;
}
load_blancer_config config_;
load_blance_config config_;
std::variant<RRLoadBlancer, WRRLoadBlancer, RandomLoadBlancer> lb_worker;
std::vector<std::shared_ptr<client_pool_t>> client_pools_;
};
Expand Down
Loading