Skip to content

Commit fa5f5e3

Browse files
committed
Try windows fix
1 parent b834275 commit fa5f5e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LocalCluster.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct LocalCluster {
3434

3535
cb(*app);
3636

37-
app->preOpen([](LIBUS_SOCKET_DESCRIPTOR fd) {
37+
app->preOpen([](LIBUS_SOCKET_DESCRIPTOR fd) -> LIBUS_SOCKET_DESCRIPTOR {
3838

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

4747
roundRobin = (roundRobin + 1) % hardwareConcurrency;
48-
return -1;
48+
return (LIBUS_SOCKET_DESCRIPTOR) -1;
4949
});
5050
m.unlock();
5151
app->run();

0 commit comments

Comments
 (0)