Skip to content

Commit

Permalink
fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
Boog900 committed Nov 10, 2024
1 parent 6680954 commit 318cf94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion storage/txpool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ use cuprate_txpool::{
let tmp_dir = tempfile::tempdir()?;
let db_dir = tmp_dir.path().to_owned();
let config = ConfigBuilder::new()
.db_directory(db_dir.into())
.data_directory(db_dir.into())
.build();

// Initialize the database environment.
Expand Down
2 changes: 1 addition & 1 deletion storage/txpool/src/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
//! let tmp_dir = tempfile::tempdir()?;
//! let db_dir = tmp_dir.path().to_owned();
//! let config = ConfigBuilder::new()
//! .db_directory(db_dir.into())
//! .data_directory(db_dir.into())
//! .build();
//!
//! // Initialize the database environment.
Expand Down
2 changes: 1 addition & 1 deletion storage/txpool/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
//! let tmp_dir = tempfile::tempdir()?;
//! let db_dir = tmp_dir.path().to_owned();
//! let config = ConfigBuilder::new()
//! .db_directory(db_dir.into())
//! .data_directory(db_dir.into())
//! .build();
//!
//! // Initialize the database thread-pool.
Expand Down

0 comments on commit 318cf94

Please sign in to comment.