mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-01 16:35:29 +08:00
clang-format
Former-commit-id: 0ef52c892fdff56800f509cecf010f95c6e7e421
This commit is contained in:
parent
edcb0bc5e1
commit
72ae6f59cc
@ -173,7 +173,7 @@ ResourceMgr::GetNumGpuResource() const {
|
||||
json
|
||||
ResourceMgr::Dump() const {
|
||||
json resources{};
|
||||
for (auto &res : resources_) {
|
||||
for (auto& res : resources_) {
|
||||
resources.push_back(res->Dump());
|
||||
}
|
||||
json ret{
|
||||
|
||||
@ -41,7 +41,7 @@ Node::GetNeighbours() {
|
||||
json
|
||||
Node::Dump() const {
|
||||
json neighbours;
|
||||
for (auto & neighbour : neighbours_) {
|
||||
for (auto& neighbour : neighbours_) {
|
||||
json n;
|
||||
n["id"] = neighbour.first;
|
||||
n["connection"] = neighbour.second.connection.Dump();
|
||||
|
||||
@ -44,9 +44,7 @@ ToString(ResourceType type) {
|
||||
case ResourceType::GPU: {
|
||||
return "GPU";
|
||||
}
|
||||
default: {
|
||||
return "UNKNOWN";
|
||||
}
|
||||
default: { return "UNKNOWN"; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user