From fa5f5e3d6396c0673851736443f85f510091dc2c Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Mon, 22 Jan 2024 12:13:41 +0100 Subject: [PATCH] Try windows fix --- src/LocalCluster.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LocalCluster.h b/src/LocalCluster.h index 55ec802..81feffc 100644 --- a/src/LocalCluster.h +++ b/src/LocalCluster.h @@ -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; @@ -45,7 +45,7 @@ struct LocalCluster { }); roundRobin = (roundRobin + 1) % hardwareConcurrency; - return -1; + return (LIBUS_SOCKET_DESCRIPTOR) -1; }); m.unlock(); app->run();