Skip to content

Commit

Permalink
add test log
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Dec 5, 2024
1 parent 0d3077a commit 36ff46d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions flexidag/src/consensusdb/access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use super::prelude::DbWriter;
use super::schema::{KeyCodec, Schema, ValueCodec};
use itertools::Itertools;
use rocksdb::{Direction, IteratorMode, ReadOptions};
use starcoin_logger::prelude::info;
use starcoin_storage::storage::RawDBStorage;
use std::backtrace::Backtrace;
use std::{
collections::hash_map::RandomState, error::Error, hash::BuildHasher, marker::PhantomData,
sync::Arc,
Expand Down Expand Up @@ -59,6 +61,7 @@ where
self.cache.insert(key, data.clone());
Ok(data)
} else {
info!("jacktest: key not found: {:?}", Backtrace::capture());
Err(StoreError::KeyNotFound(format!("{:?}", key)))
}
}
Expand Down
2 changes: 1 addition & 1 deletion sync/src/parallel/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl DagBlockExecutor {
header.id(), absent_id, delay
);
tokio::task::yield_now().await;
tokio::time::sleep(tokio::time::Duration::from_millis(100))
tokio::time::sleep(delay)
.await;
// the delay is no more than 2 hours
delay = std::cmp::min(
Expand Down

0 comments on commit 36ff46d

Please sign in to comment.