diff --git a/config/src/config.rs b/config/src/config.rs index 252f43c1b5..af1261124b 100644 --- a/config/src/config.rs +++ b/config/src/config.rs @@ -46,6 +46,7 @@ const GRIN_HOME: &'static str = ".grin"; const GRIN_CHAIN_DIR: &'static str = "chain_data"; /// Wallet data directory pub const GRIN_WALLET_DIR: &'static str = "wallet_data"; +/// API secret file name pub const API_SECRET_FILE_NAME: &'static str = ".api_secret"; fn get_grin_path(chain_type: &global::ChainTypes) -> Result { diff --git a/src/bin/cmd/server.rs b/src/bin/cmd/server.rs index ea9c4ad0bd..1d3b03c1a8 100644 --- a/src/bin/cmd/server.rs +++ b/src/bin/cmd/server.rs @@ -13,8 +13,6 @@ // limitations under the License. /// Grin server commands processing -#[cfg(not(target_os = "windows"))] -use std::env::current_dir; use std::process::exit; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc;