Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
darkgrey1554 committed Feb 3, 2025
1 parent ab37a58 commit 61307e5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions controlplane/configparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ void config_parser_t::loadConfig_balancer_services(controlplane::base_t& baseNex

balancer::scheduler scheduler{};
balancer::scheduler_params scheduler_params{};
uint8_t flags = 0;
uint8_t flags = 0;
if (scheduler_string == "rr")
{
scheduler = balancer::scheduler::rr;
Expand All @@ -1669,11 +1669,11 @@ void config_parser_t::loadConfig_balancer_services(controlplane::base_t& baseNex
}
}
else if (scheduler_string == "purr")
{
scheduler = balancer::scheduler::wrr;
flags |= YANET_BALANCER_PURE_ROUND_ROBIN;
}
else
{
scheduler = balancer::scheduler::wrr;
flags |= YANET_BALANCER_PURE_ROUND_ROBIN;
}
else
{
throw error_result_t(eResult::invalidConfigurationFile, "unknown scheduler: " + scheduler_string);
}
Expand Down

0 comments on commit 61307e5

Please sign in to comment.