mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-07-10 05:03:45 +02:00
clang-format
This commit is contained in:
parent
4efd206dd4
commit
db6045fe9c
1 changed files with 4 additions and 5 deletions
|
@ -1751,11 +1751,10 @@ void Bond::processActiveBackupTasks(void* tPtr, int64_t now)
|
|||
}
|
||||
}
|
||||
// Sort queue based on performance
|
||||
std::sort(_abFailoverQueue.begin(), _abFailoverQueue.end(),
|
||||
[this](const int a, const int b) {
|
||||
// Sort by failover score in descending order (highest score first)
|
||||
return _paths[a].failoverScore > _paths[b].failoverScore;
|
||||
});
|
||||
std::sort(_abFailoverQueue.begin(), _abFailoverQueue.end(), [this](const int a, const int b) {
|
||||
// Sort by failover score in descending order (highest score first)
|
||||
return _paths[a].failoverScore > _paths[b].failoverScore;
|
||||
});
|
||||
|
||||
/**
|
||||
* Short-circuit if we have no queued paths
|
||||
|
|
Loading…
Add table
Reference in a new issue