Skip to content
Snippets Groups Projects
Commit 3faf25a3 authored by arshiam2's avatar arshiam2
Browse files

update

parent f1720db4
No related branches found
No related tags found
No related merge requests found
......@@ -419,7 +419,8 @@ round_robin = 0
setInterval(function sync() {
if (queue.length > 0) {
const body = queue.pop();
console.log(round_robin % clients.length)
// print(clients.length)
console.log("SENDING TO" + round_robin + " " + clients.length)
let url = "http://" + machineToIps[ clients[round_robin % clients.length] ] + ":3000/bolt/";
round_robin += 1;
fetch(url, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment