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

Function NewLocalGraphClientImpl

src/graph/client/local_graph_client_impl.cc:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94};
95
96std::unique_ptr<GraphClientImpl> NewLocalGraphClientImpl(
97 const GraphConfig& config) {
98 std::unique_ptr<GraphClientImpl> graph_client_impl;
99 graph_client_impl.reset(new LocalGraphClientImpl());
100 if (!dynamic_cast<LocalGraphClientImpl*>(graph_client_impl.get())
101 ->Init(config)) {
102 DXERROR("Failed to new local graph client impl.");
103 graph_client_impl.reset();
104 }
105 return graph_client_impl;
106}
107
108} // namespace embedx

Callers 1

NewGraphClientFunction · 0.85

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected