improvement: log sleeps due to full query_tx

This commit is contained in:
Greg Heartsfield 2023-02-01 18:09:30 -06:00
parent e5e03d4378
commit eb1d2d717d

View File

@ -436,6 +436,7 @@ impl NostrRepo for SqliteRepo {
return Ok(());
}
// give the queue a chance to clear before trying again
info!("query thread sleeping due to full query_tx (cid: {}, sub: {:?})", client_id, sub.id);
thread::sleep(Duration::from_millis(100));
}
// TODO: we could use try_send, but we'd have to juggle