From 378d80a22a46084b192d4497f937d9c398d2962d Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 20 Dec 2024 11:44:59 +0100 Subject: [PATCH] chore: sprinkle a few track_caller (#13471) --- crates/storage/db/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/storage/db/src/lib.rs b/crates/storage/db/src/lib.rs index 7090b4262..113e8661f 100644 --- a/crates/storage/db/src/lib.rs +++ b/crates/storage/db/src/lib.rs @@ -162,6 +162,7 @@ pub mod test_utils { } /// Create `static_files` path for testing + #[track_caller] pub fn create_test_static_files_dir() -> (TempDir, PathBuf) { let temp_dir = TempDir::with_prefix("reth-test-static-").expect(ERROR_TEMPDIR); let path = temp_dir.path().to_path_buf(); @@ -175,6 +176,7 @@ pub mod test_utils { } /// Create read/write database for testing + #[track_caller] pub fn create_test_rw_db() -> Arc> { let path = tempdir_path(); let emsg = format!("{ERROR_DB_CREATION}: {path:?}"); @@ -190,6 +192,7 @@ pub mod test_utils { } /// Create read/write database for testing + #[track_caller] pub fn create_test_rw_db_with_path>(path: P) -> Arc> { let path = path.as_ref().to_path_buf(); let db = init_db( @@ -202,6 +205,7 @@ pub mod test_utils { } /// Create read only database for testing + #[track_caller] pub fn create_test_ro_db() -> Arc> { let args = DatabaseArguments::new(ClientVersion::default()) .with_max_read_transaction_duration(Some(MaxReadTransactionDuration::Unbounded));