Skip to content

Commit

Permalink
Remove hostname output on load balancer start; HOST_NAME_MAX was not …
Browse files Browse the repository at this point in the history
…available on Mac, and we don't strictly need the output
  • Loading branch information
linusseelinger committed Mar 6, 2024
1 parent 7195cdc commit 91b91db
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions hpc/LoadBalancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ void clear_url(std::string directory) {
}
}

std::string get_hostname() {
char hostname[HOST_NAME_MAX];
gethostname(hostname, HOST_NAME_MAX);
return std::string(hostname);
}

void launch_hq_with_alloc_queue() {
std::system("hq server stop &> /dev/null");

Expand Down Expand Up @@ -89,7 +83,6 @@ int main(int argc, char *argv[])
std::transform(LB_vector.begin(), LB_vector.end(), LB_ptr_vector.begin(),
[](LoadBalancer& obj) { return &obj; });

std::cout << "Load balancer running on host " << get_hostname()
<< " and bound to 0.0.0.0:" << port << std::endl;
std::cout << "Load balancer running port" << port << std::endl;
umbridge::serveModels(LB_ptr_vector, "0.0.0.0", port, true, false);
}

0 comments on commit 91b91db

Please sign in to comment.