Skip to content
Snippets Groups Projects
Commit 4caba1d1 authored by arshiam2's avatar arshiam2
Browse files

update

parent 7819ea36
No related branches found
No related tags found
No related merge requests found
......@@ -20,27 +20,17 @@ module.exports.builder = (yargs: any) => yargs;
module.exports.handler = handleErrors(async (argv: {}) => {
const master = await getMaster();
// getCSVdata();
setInterval(function sync() {
// if (queue.length > 0) {
// const body = queue.pop();
var target = "http://"+ master + ":3000/sink/";
console.log(target)
// console.log(JSON.stringify(body).state)
fetch(target)
.then(res => (res.text()))
.then(data => {
if (data == "DONE") {
// queue.push(json);
// console.log(data.act)
process.exit()
} else {
console.log(data);
}
});
// }
}, 500);
}, 200);
});
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