Code cleanup and optimization - removed debug logs and comments
This commit is contained in:
@@ -117,7 +117,7 @@ io.on("connection", (socket) => {
|
|||||||
|
|
||||||
if (cachedPrices && now - lastFetchTime < CACHE_DURATION) {
|
if (cachedPrices && now - lastFetchTime < CACHE_DURATION) {
|
||||||
socket.emit("data", cachedPrices);
|
socket.emit("data", cachedPrices);
|
||||||
console.log(`[${now.toISOString()}]📦 Push Cached Data`);
|
console.log(`📦 Push Cached Data at ${now.toISOString()}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Get latest data
|
// Get latest data
|
||||||
|
|||||||
Reference in New Issue
Block a user