| 82 | }; |
| 83 | |
| 84 | std::unique_ptr<GraphClientImpl> NewDistGraphClientImpl( |
| 85 | const GraphConfig& config) { |
| 86 | std::unique_ptr<GraphClientImpl> graph_client_impl; |
| 87 | graph_client_impl.reset(new DistGraphClientImpl); |
| 88 | if (!dynamic_cast<DistGraphClientImpl*>(graph_client_impl.get()) |
| 89 | ->Init(config)) { |
| 90 | DXERROR("Failed to new dist graph client impl."); |
| 91 | graph_client_impl.reset(); |
| 92 | } |
| 93 | return graph_client_impl; |
| 94 | } |
| 95 | |
| 96 | } // namespace embedx |