MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetIPAndPortFromUrl

Function GetIPAndPortFromUrl

serving/processor/storage/feature_store_mgr.cc:97–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97Status GetIPAndPortFromUrl(const std::string& url,
98 std::string* ip,
99 int32_t* port) {
100 auto offset = url.find(":");
101 if (offset == std::string::npos) {
102 return tensorflow::errors::Internal(
103 "Can't parse ip and port from url: ", url);
104 }
105
106 *ip = url.substr(0, offset);
107 *port = atoi(url.substr(offset+1, url.length()).c_str());
108
109 return Status::OK();
110}
111
112FeatureStore* CreateFeatureStore(ModelConfig* config) {
113 if (config->feature_store_type == "redis") {

Callers 1

CreateFeatureStoreFunction · 0.85

Calls 4

InternalFunction · 0.85
c_strMethod · 0.80
findMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected