MCPcopy Create free account
hub / github.com/Tencent/embedx / NewDistGraphClientImpl

Function NewDistGraphClientImpl

src/graph/client/dist_graph_client_impl.cc:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82};
83
84std::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

Callers 1

NewGraphClientFunction · 0.85

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected