mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-22 16:35:51 -05:00
fix: use correct start time for logging SQL generation
This commit is contained in:
parent
abc356c17d
commit
f44dae6ac9
|
@ -342,7 +342,7 @@ impl NostrRepo for SqliteRepo {
|
|||
for filter in sub.filters.iter() {
|
||||
let filter_start = Instant::now();
|
||||
filter_count += 1;
|
||||
let sql_gen_elapsed = start.elapsed();
|
||||
let sql_gen_elapsed = filter_start.elapsed();
|
||||
let (q, p, idx) = query_from_filter(filter);
|
||||
if sql_gen_elapsed > Duration::from_millis(10) {
|
||||
debug!("SQL (slow) generated in {:?}", filter_start.elapsed());
|
||||
|
|
Loading…
Reference in New Issue
Block a user