From 65f88d7c55b1184558e67793079ae8a5c1ab83d5 Mon Sep 17 00:00:00 2001 From: Jamon Terrell Date: Sun, 11 May 2025 20:48:30 -0500 Subject: [PATCH] remove direct node timeout, since you can use the map filters now --- src/pages/Map/index.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pages/Map/index.tsx b/src/pages/Map/index.tsx index da41cccf..93a95854 100644 --- a/src/pages/Map/index.tsx +++ b/src/pages/Map/index.tsx @@ -47,8 +47,6 @@ const getSignalColor = (snr: number, rssi?: number) => { return LINE_BAD_COLOR; }; -const DIRECT_NODE_TIMEOUT = 60 * 20; // 60 seconds * ? minutes - type NodePosition = { latitude: number; longitude: number; @@ -120,7 +118,6 @@ const generateDirectLines = ( for (const node of nodes) { if (!node.position || node.hopsAway !== 0) continue; - if (Date.now() / 1000 - node.lastHeard > DIRECT_NODE_TIMEOUT) continue; const start = convertToLatLng(node.position); const end = convertToLatLng(myNode.position); features.push({