From 3cd425da56ad9e65a90e588fde45309da65545c5 Mon Sep 17 00:00:00 2001 From: arkanoider Date: Fri, 8 Sep 2023 10:05:29 +0200 Subject: [PATCH] removed some comments --- src/app.rs | 11 +---------- src/app/rate_user.rs | 15 --------------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/app.rs b/src/app.rs index 6215541..d63e0db 100644 --- a/src/app.rs +++ b/src/app.rs @@ -22,7 +22,7 @@ use crate::app::release::release_action; use crate::app::take_buy::take_buy_action; use crate::app::take_sell::take_sell_action; use crate::lightning::LndConnector; -// use crate::CLEAR_USER_VEC; + use anyhow::Result; use mostro_core::{Action, Message}; use nostr_sdk::prelude::*; @@ -40,15 +40,6 @@ pub async fn run( loop { let mut notifications = client.notifications(); - // let mut rate_list: Vec = vec![]; - - // Check if we can send user rates updates - // if CLEAR_USER_VEC.load(Ordering::Relaxed) { - // send_user_rates(&rate_list, &client).await?; - // CLEAR_USER_VEC.store(false, Ordering::Relaxed); - // rate_list.clear(); - // } - while let Ok(notification) = notifications.recv().await { if let RelayPoolNotification::Event(_, event) = notification { if let Kind::EncryptedDirectMessage = event.kind { diff --git a/src/app/rate_user.rs b/src/app/rate_user.rs index d0d115d..1a49ce8 100644 --- a/src/app/rate_user.rs +++ b/src/app/rate_user.rs @@ -260,18 +260,3 @@ pub async fn update_user_reputation_action( Ok(()) } - -// pub async fn send_user_rates(rate_list: &[Event], client: &Client) -> Result<()> { -// for ev in rate_list.iter() { -// // Send event to relay -// match client.send_event(ev.clone()).await { -// Ok(id) => { -// info!("Updated rate event with id {:?}", id) -// } -// Err(e) => { -// info!("Error on updating rate event {:?}", e.to_string()) -// } -// } -// } -// Ok(()) -// }