Skip to content

Commit

Permalink
Try windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed Jan 22, 2024
1 parent b834275 commit fa5f5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LocalCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct LocalCluster {

cb(*app);

app->preOpen([](LIBUS_SOCKET_DESCRIPTOR fd) {
app->preOpen([](LIBUS_SOCKET_DESCRIPTOR fd) -> LIBUS_SOCKET_DESCRIPTOR {

/* Distribute this socket in round robin fashion */
//std::cout << "About to load balance " << fd << " to " << roundRobin << std::endl;
Expand All @@ -45,7 +45,7 @@ struct LocalCluster {
});

roundRobin = (roundRobin + 1) % hardwareConcurrency;
return -1;
return (LIBUS_SOCKET_DESCRIPTOR) -1;
});
m.unlock();
app->run();
Expand Down

0 comments on commit fa5f5e3

Please sign in to comment.