From e14e15fcbb00b976383b1efc9fbc4f8d2fe25fc7 Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 16 Mar 2026 17:47:06 -0700 Subject: [PATCH] Revert: Also update lastPing for legacy --- server/routers/gerbil/receiveBandwidth.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/routers/gerbil/receiveBandwidth.ts b/server/routers/gerbil/receiveBandwidth.ts index e06a6d5d0..b73ce986d 100644 --- a/server/routers/gerbil/receiveBandwidth.ts +++ b/server/routers/gerbil/receiveBandwidth.ts @@ -97,7 +97,6 @@ export async function flushSiteBandwidthToDb(): Promise { accumulator = new Map(); const currentTime = new Date().toISOString(); - const currentTimeEpochSeconds = Math.floor(new Date().getTime() / 1000); // Sort by publicKey for consistent lock ordering across concurrent // writers — deadlock-prevention strategy. @@ -121,7 +120,6 @@ export async function flushSiteBandwidthToDb(): Promise { megabytesOut: sql`COALESCE(${sites.megabytesOut}, 0) + ${bytesIn}`, megabytesIn: sql`COALESCE(${sites.megabytesIn}, 0) + ${bytesOut}`, lastBandwidthUpdate: currentTime, - lastPing: currentTimeEpochSeconds }) .where(eq(sites.pubKey, publicKey)) .returning({