fixed inet typos
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user