use crate::records::ip_score::enums::InfractionType; use crate::records::ip_score::score::update_ip_score; use crate::records::memory::enums::ClientType; use crate::sled::Db; use crate::wallets::structures::Wallet; use crate::Arc; use crate::Utc; pub async fn record(ip: &str, client_type: ClientType, db: &Db, wallet: Arc) { let now = Utc::now().timestamp() as u32; let _ = update_ip_score( ip, client_type.as_str(), InfractionType::BadRpcCall, now, db, wallet, ) .await; }