Each node has an unique string id.
| 31 | |
| 32 | // Each node has an unique string id. |
| 33 | inline std::string MyNodeID() { return MyNode().id(); } |
| 34 | |
| 35 | // query the role of this node |
| 36 | inline int IsWorker() { return MyNode().role() == Node::WORKER; } |
no test coverage detected