From 753f23cc03fce0144709e5e5f99a105422f27a4b Mon Sep 17 00:00:00 2001 From: jdl Date: Fri, 12 Jun 2026 14:57:52 +0200 Subject: [PATCH] audit items --- hub/api/db/written.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hub/api/db/written.go b/hub/api/db/written.go index 20496ef..11251f2 100644 --- a/hub/api/db/written.go +++ b/hub/api/db/written.go @@ -11,9 +11,3 @@ func Peer_GetByAPIKey(tx TX, apiKey string) (*Peer, error) { Peer_SelectQuery+` WHERE APIKey=?`, apiKey) } - -func Peer_Exists(tx TX, networkID int64, ip byte) (exists bool, err error) { - const query = `SELECT EXISTS(SELECT 1 FROM peers WHERE NetworkID=? AND PeerIP=?)` - err = tx.QueryRow(query, networkID, ip).Scan(&exists) - return -}