notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 7b9e6f180caaf63b03a5cacf1de0f54f36aba488
parent 6003ef5aecb3228b9c93a7aa160e2ad4a3219600
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 23 Mar 2025 09:24:59 -0700

disable large scale unknown id detection

its slow

Diffstat:
Mcrates/notedeck_columns/src/app.rs | 25++++++++++++-------------
Mcrates/notedeck_columns/src/unknowns.rs | 2++
2 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/crates/notedeck_columns/src/app.rs b/crates/notedeck_columns/src/app.rs @@ -8,7 +8,6 @@ use crate::{ support::Support, timeline::{self, TimelineCache}, ui::{self, note::NoteOptions, DesktopSidePanel}, - unknowns, view_state::ViewState, Result, }; @@ -221,18 +220,18 @@ fn handle_eose( // eose on timeline? whatevs } SubKind::Initial => { - let txn = Transaction::new(ctx.ndb)?; - unknowns::update_from_columns( - &txn, - ctx.unknown_ids, - timeline_cache, - ctx.ndb, - ctx.note_cache, - ); - // this is possible if this is the first time - if ctx.unknown_ids.ready_to_send() { - unknown_id_send(ctx.unknown_ids, ctx.pool); - } + //let txn = Transaction::new(ctx.ndb)?; + //unknowns::update_from_columns( + // &txn, + // ctx.unknown_ids, + // timeline_cache, + // ctx.ndb, + // ctx.note_cache, + //); + //// this is possible if this is the first time + //if ctx.unknown_ids.ready_to_send() { + // unknown_id_send(ctx.unknown_ids, ctx.pool); + //} } // oneshot subs just close when they're done diff --git a/crates/notedeck_columns/src/unknowns.rs b/crates/notedeck_columns/src/unknowns.rs @@ -1,3 +1,4 @@ +/* use crate::{timeline::TimelineCache, Result}; use nostrdb::{Ndb, NoteKey, Transaction}; use notedeck::{CachedNote, NoteCache, UnknownIds}; @@ -67,3 +68,4 @@ pub fn get_unknown_ids( Ok(()) } +*/