log more ...

This commit is contained in:
GroovieGermanikus 2024-06-26 09:27:23 +02:00
parent a48893004c
commit 6bf8912599
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 2 additions and 0 deletions

View File

@ -932,6 +932,7 @@ impl PostgresSession {
pub async fn save_block(&self, block_info: BlockInfo) -> anyhow::Result<()> {
let slot = block_info.slot as Slot;
debug!("Saving block {} ...", slot);
// 750ms
let _span = tracing::info_span!("save_block", slot = block_info.slot);
let instant = Instant::now();
@ -946,6 +947,7 @@ impl PostgresSession {
.map(|transaction| transaction.signature.clone())
.collect()
};
debug!("Creating transaction ids for block {}", slot);
self.create_transaction_ids(signatures, slot).await?;
TIME_TO_SAVE_TRANSACTION.set(int_sig.elapsed().as_millis() as i64);
// create account ids