mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-21 18:24:31 +00:00
try fix windows
This commit is contained in:
parent
65223dc175
commit
2751831a75
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
r#"
|
||||
# ____ _
|
||||
# / ___| _ _ __ _ __ __ _| |_ ___
|
||||
# | | | | | | '_ \| '__/ _` | __/ _ \
|
||||
|
@ -73,3 +74,5 @@ max_txpool_size = 100_000_000
|
|||
path = "{blockchain}"
|
||||
## The database sync mode for the blockchain.
|
||||
sync_mode = "Async"
|
||||
|
||||
"#
|
|
@ -1,6 +1,7 @@
|
|||
use std::{
|
||||
io::Write,
|
||||
path::{Path, PathBuf},
|
||||
str::from_utf8,
|
||||
};
|
||||
|
||||
use cuprate_helper::fs::{CUPRATE_BLOCKCHAIN_DIR, CUPRATE_CACHE_DIR, CUPRATE_TXPOOL_DIR};
|
||||
|
@ -36,7 +37,7 @@ pub fn create_default_config_file(path: &Path) -> ! {
|
|||
/// Generates the text of the default config file.
|
||||
fn generate_config_text() -> String {
|
||||
format!(
|
||||
include_str!("Cuprate.toml"),
|
||||
include!("Cuprate.toml"),
|
||||
cache = CUPRATE_CACHE_DIR.to_string_lossy(),
|
||||
txpool = CUPRATE_TXPOOL_DIR.to_string_lossy(),
|
||||
blockchain = CUPRATE_BLOCKCHAIN_DIR.to_string_lossy()
|
||||
|
|
Loading…
Reference in a new issue