MCPcopy Create free account
hub / github.com/apple/foundationdb / newNet2

Function newNet2

flow/Net2.actor.cpp:2104–2116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2102}
2103
2104INetwork* newNet2(const TLSConfig& tlsConfig, bool useThreadPool, bool useMetrics) {
2105 try {
2106 N2::g_net2 = new N2::Net2(tlsConfig, useThreadPool, useMetrics);
2107 } catch (boost::system::system_error e) {
2108 TraceEvent("Net2InitError").detail("Message", e.what());
2109 throw unknown_error();
2110 } catch (std::exception const& e) {
2111 TraceEvent("Net2InitError").detail("Message", e.what());
2112 throw unknown_error();
2113 }
2114
2115 return N2::g_net2;
2116}
2117
2118struct TestGVR {
2119 Standalone<StringRef> key;

Callers 9

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
fdb_flow_testFunction · 0.85
startTestFunction · 0.85
_test_versionstampFunction · 0.85
Sim2Function · 0.85
runHostFunction · 0.85
setupNetworkFunction · 0.85

Calls 3

TraceEventClass · 0.85
detailMethod · 0.80
whatMethod · 0.45

Tested by 3

startTestFunction · 0.68
_test_versionstampFunction · 0.68
runHostFunction · 0.68