We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b834275 commit fa5f5e3Copy full SHA for fa5f5e3
src/LocalCluster.h
@@ -34,7 +34,7 @@ struct LocalCluster {
34
35
cb(*app);
36
37
- app->preOpen([](LIBUS_SOCKET_DESCRIPTOR fd) {
+ app->preOpen([](LIBUS_SOCKET_DESCRIPTOR fd) -> LIBUS_SOCKET_DESCRIPTOR {
38
39
/* Distribute this socket in round robin fashion */
40
//std::cout << "About to load balance " << fd << " to " << roundRobin << std::endl;
@@ -45,7 +45,7 @@ struct LocalCluster {
45
});
46
47
roundRobin = (roundRobin + 1) % hardwareConcurrency;
48
- return -1;
+ return (LIBUS_SOCKET_DESCRIPTOR) -1;
49
50
m.unlock();
51
app->run();
0 commit comments