fixed inet typos

This commit is contained in:
2026-06-29 07:13:21 -03:00
parent e886d643a8
commit 189b496ad9
+2 -2
View File
@@ -134,7 +134,7 @@ impl Database {
} }
pub async fn upsert_open_endpoint(&self, ip: std::net::Ipv4Addr, port: u16) -> Result<()> { pub async fn upsert_open_endpoint(&self, ip: std::net::Ipv4Addr, port: u16) -> Result<()> {
let ip = ip.to_string(); let ip = std::net::IpAddr::V4(ip);
let port = i32::from(port); let port = i32::from(port);
self.client self.client
@@ -148,7 +148,7 @@ impl Database {
created_at, created_at,
updated_at updated_at
) )
VALUES ($1::inet, $2, NOW(), NOW(), NOW(), NOW()) VALUES ($1, $2, NOW(), NOW(), NOW(), NOW())
ON CONFLICT (ip) DO UPDATE SET ON CONFLICT (ip) DO UPDATE SET
port = EXCLUDED.port, port = EXCLUDED.port,
scanned_at = NOW(), scanned_at = NOW(),