Fix code style

This commit is contained in:
zhangxiao871 2021-10-21 15:57:21 +08:00
parent ac421b7faf
commit 5c34e24f49
3 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,8 @@ std::function<size_t(size_t index)> GetPriorityForLoadBalancing::getPriorityFunc
* last_used = 3 -> get_priority: 4 3 0 1 2
* ...
* */
get_priority = [&](size_t i) {
get_priority = [&](size_t i)
{
++i;
return i < last_used ? pool_size - i : i - last_used;
};

View File

@ -26,7 +26,6 @@ namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
extern const int NOT_IMPLEMENTED;
extern const int UNKNOWN_LOAD_BALANCING;
}
}

View File

@ -43,7 +43,6 @@ constexpr size_t MULTI_BATCH_SIZE = 100;
struct ShuffleHost
{
String host;
/// Priority from the GetPriorityFunc.
Int64 priority = 0;
UInt32 random = 0;