Skip to content

Commit

Permalink
removed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanoider committed Sep 8, 2023
1 parent 27404e4 commit 3cd425d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
11 changes: 1 addition & 10 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand All @@ -40,15 +40,6 @@ pub async fn run(
loop {
let mut notifications = client.notifications();

// let mut rate_list: Vec<Event> = 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 {
Expand Down
15 changes: 0 additions & 15 deletions src/app/rate_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
// }

0 comments on commit 3cd425d

Please sign in to comment.