| 149 | } |
| 150 | |
| 151 | bool DistGraphServer::Start(const GraphConfig& config) { |
| 152 | if (!InitGraphServer(config)) { |
| 153 | DXERROR("Failed to init graph server."); |
| 154 | return false; |
| 155 | } |
| 156 | |
| 157 | if (!InitRpcServer(config)) { |
| 158 | DXERROR("Failed to init rpc server."); |
| 159 | return false; |
| 160 | } |
| 161 | |
| 162 | RegisterRequestHandler(); |
| 163 | TouchSuccessFile(config); |
| 164 | rpc_server_.Run(); |
| 165 | return true; |
| 166 | } |
| 167 | |
| 168 | } // namespace embedx |
no test coverage detected