| 3 | namespace PS { |
| 4 | |
| 5 | App* App::create(const string& name, const string& conf) { |
| 6 | auto my_role = Postoffice::instance().myNode().role(); |
| 7 | if (my_role == Node::SERVER) { |
| 8 | return CreateServerNode(conf); |
| 9 | } else { |
| 10 | return new App(); |
| 11 | } |
| 12 | } |
| 13 | } // namespace PS |
| 14 | |
| 15 | int main(int argc, char *argv[]) { |
nothing calls this directly
no test coverage detected