disable large scale unknown id detection
its slow
This commit is contained in:
@@ -8,7 +8,6 @@ use crate::{
|
|||||||
support::Support,
|
support::Support,
|
||||||
timeline::{self, TimelineCache},
|
timeline::{self, TimelineCache},
|
||||||
ui::{self, note::NoteOptions, DesktopSidePanel},
|
ui::{self, note::NoteOptions, DesktopSidePanel},
|
||||||
unknowns,
|
|
||||||
view_state::ViewState,
|
view_state::ViewState,
|
||||||
Result,
|
Result,
|
||||||
};
|
};
|
||||||
@@ -221,18 +220,18 @@ fn handle_eose(
|
|||||||
// eose on timeline? whatevs
|
// eose on timeline? whatevs
|
||||||
}
|
}
|
||||||
SubKind::Initial => {
|
SubKind::Initial => {
|
||||||
let txn = Transaction::new(ctx.ndb)?;
|
//let txn = Transaction::new(ctx.ndb)?;
|
||||||
unknowns::update_from_columns(
|
//unknowns::update_from_columns(
|
||||||
&txn,
|
// &txn,
|
||||||
ctx.unknown_ids,
|
// ctx.unknown_ids,
|
||||||
timeline_cache,
|
// timeline_cache,
|
||||||
ctx.ndb,
|
// ctx.ndb,
|
||||||
ctx.note_cache,
|
// ctx.note_cache,
|
||||||
);
|
//);
|
||||||
// this is possible if this is the first time
|
//// this is possible if this is the first time
|
||||||
if ctx.unknown_ids.ready_to_send() {
|
//if ctx.unknown_ids.ready_to_send() {
|
||||||
unknown_id_send(ctx.unknown_ids, ctx.pool);
|
// unknown_id_send(ctx.unknown_ids, ctx.pool);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
// oneshot subs just close when they're done
|
// oneshot subs just close when they're done
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/*
|
||||||
use crate::{timeline::TimelineCache, Result};
|
use crate::{timeline::TimelineCache, Result};
|
||||||
use nostrdb::{Ndb, NoteKey, Transaction};
|
use nostrdb::{Ndb, NoteKey, Transaction};
|
||||||
use notedeck::{CachedNote, NoteCache, UnknownIds};
|
use notedeck::{CachedNote, NoteCache, UnknownIds};
|
||||||
@@ -67,3 +68,4 @@ pub fn get_unknown_ids(
|
|||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user