Skip to content

Commit 6680954

Browse files
committed
fix doc
1 parent 7c5fa6d commit 6680954

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

storage/blockchain/src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ impl ConfigBuilder {
9393
/// Build into a [`Config`].
9494
///
9595
/// # Default values
96-
/// If [`ConfigBuilder::db_directory`] was not called,
97-
/// the default [`CUPRATE_BLOCKCHAIN_DIR`] will be used.
96+
/// If [`ConfigBuilder::data_directory`] was not called,
97+
/// [`blockchain_path`] with [`CUPRATE_DATA_DIR`] [`Network::Mainnet`] will be used.
9898
///
9999
/// For all other values, [`Default::default`] is used.
100100
pub fn build(self) -> Config {
@@ -213,7 +213,7 @@ impl Config {
213213
/// Create a new [`Config`] with sane default settings.
214214
///
215215
/// The [`cuprate_database::config::Config::db_directory`]
216-
/// will be set to [`CUPRATE_BLOCKCHAIN_DIR`] joined with [`Network::Mainnet`].
216+
/// will be set to [`blockchain_path`] with [`CUPRATE_DATA_DIR`] [`Network::Mainnet`].
217217
///
218218
/// All other values will be [`Default::default`].
219219
///

storage/txpool/src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ impl ConfigBuilder {
5959
/// Build into a [`Config`].
6060
///
6161
/// # Default values
62-
/// If [`ConfigBuilder::db_directory`] was not called,
63-
/// the default [`CUPRATE_TXPOOL_DIR`] will be used.
62+
/// If [`ConfigBuilder::data_directory`] was not called,
63+
/// [`txpool_path`] with [`CUPRATE_DATA_DIR`] and [`Network::Mainnet`] will be used.
6464
///
6565
/// For all other values, [`Default::default`] is used.
6666
pub fn build(self) -> Config {
@@ -196,7 +196,7 @@ impl Config {
196196
/// Create a new [`Config`] with sane default settings.
197197
///
198198
/// The [`DbConfig::db_directory`]
199-
/// will be set to [`CUPRATE_TXPOOL_DIR`] joined with [`Network::Mainnet`].
199+
/// will be set to [`txpool_path`] with [`CUPRATE_DATA_DIR`] and [`Network::Mainnet`].
200200
///
201201
/// All other values will be [`Default::default`].
202202
///

0 commit comments

Comments
 (0)