Browse Source

clang-format

pull/4/head
Adam Ierymenko 9 months ago
parent
commit
db6045fe9c
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3
  1. 9
      node/Bond.cpp

9
node/Bond.cpp

@ -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…
Cancel
Save