mirror of
https://github.com/wassname/ray.git
synced 2026-07-29 11:26:04 +08:00
change filenames and directory structure to use halo (#81)
This commit is contained in:
committed by
Philipp Moritz
parent
b58eaf84ee
commit
67086f663e
+4
-4
@@ -1,5 +1,5 @@
|
||||
#ifndef ORCHESTRA_UTILS_H
|
||||
#define ORCHESTRA_UTILS_H
|
||||
#ifndef HALO_UTILS_H
|
||||
#define HALO_UTILS_H
|
||||
|
||||
inline std::string::iterator split_ip_address(std::string& ip_address) {
|
||||
if (ip_address[0] == '[') { // IPv6
|
||||
@@ -10,11 +10,11 @@ inline std::string::iterator split_ip_address(std::string& ip_address) {
|
||||
if(split_end != ip_address.end() && *split_end == ':') {
|
||||
return split_end;
|
||||
}
|
||||
ORCH_LOG(ORCH_FATAL, "ip address should contain a port number");
|
||||
HALO_LOG(HALO_FATAL, "ip address should contain a port number");
|
||||
} else { // IPv4
|
||||
auto split_point = std::find(ip_address.rbegin(), ip_address.rend(), ':').base();
|
||||
if (split_point == ip_address.begin()) {
|
||||
ORCH_LOG(ORCH_FATAL, "ip address should contain a port number");
|
||||
HALO_LOG(HALO_FATAL, "ip address should contain a port number");
|
||||
} else {
|
||||
return split_point;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user