mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -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() {
|
for filter in sub.filters.iter() {
|
||||||
let filter_start = Instant::now();
|
let filter_start = Instant::now();
|
||||||
filter_count += 1;
|
filter_count += 1;
|
||||||
let sql_gen_elapsed = start.elapsed();
|
let sql_gen_elapsed = filter_start.elapsed();
|
||||||
let (q, p, idx) = query_from_filter(filter);
|
let (q, p, idx) = query_from_filter(filter);
|
||||||
if sql_gen_elapsed > Duration::from_millis(10) {
|
if sql_gen_elapsed > Duration::from_millis(10) {
|
||||||
debug!("SQL (slow) generated in {:?}", filter_start.elapsed());
|
debug!("SQL (slow) generated in {:?}", filter_start.elapsed());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user