Removed package sleep

This commit is contained in:
eetnaviation
2024-03-16 11:43:12 +02:00
parent cc539e3f79
commit 95ebdd3e1b
11 changed files with 3 additions and 5 deletions

View File

@ -10,7 +10,6 @@ const { Server } = require("socket.io");
const io = new Server(server);
const axios = require('axios');
const fs = require('node:fs');
var sleep = require('sleep');
let requestedType = "Unfetched";
@ -50,7 +49,6 @@ async function triggerConstantDataFetch() {
console.log("Fetching new data...");
await fetchData();
console.log("Data fetch completed. Wait 5 seconds before next fetch!");
await sleep.usleep(5000000);
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,14 +4,14 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "node_sleep", "node_sleep.vc
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Release|x64 = Release|x64
Debug|x64 = Debug|x64
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Release|x64.ActiveCfg = Release|x64
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Release|x64.Build.0 = Release|x64
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Debug|x64.ActiveCfg = Debug|x64
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Debug|x64.Build.0 = Debug|x64
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Release|x64.ActiveCfg = Release|x64
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE