Skip to content

Commit

Permalink
[coro_io] fix rename
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Aug 5, 2024
1 parent a0bd54c commit 627b247
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 627b247

Please sign in to comment.