Compare commits
	
		
			2 Commits
		
	
	
		
			cc4e4c3d2c
			...
			617b5cba43
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 617b5cba43 | |||
| 006817161d | 
| @ -1,6 +1,6 @@ | |||||||
| // SPDX-License-Identifier: Apache-2.0
 | // SPDX-License-Identifier: Apache-2.0
 | ||||||
| 
 | 
 | ||||||
| use crate::constants::{BRAIN_STAGING, BRAIN_TESTING, CONFIG_OVERRIDE_PATH_ENV}; | use crate::constants::{BRAIN_STAGING, BRAIN_TESTING}; | ||||||
| use crate::general; | use crate::general; | ||||||
| use crate::utils::block_on; | use crate::utils::block_on; | ||||||
| use ed25519_dalek::SigningKey; | use ed25519_dalek::SigningKey; | ||||||
| @ -187,7 +187,7 @@ impl Config { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     pub fn cli_dir_path() -> Result<String, Error> { |     pub fn cli_dir_path() -> Result<String, Error> { | ||||||
|         let dir = std::env::var(CONFIG_OVERRIDE_PATH_ENV) |         let dir = std::env::var("DETEE_API_USER_PATH") | ||||||
|             .unwrap_or_else(|_| Self::home_dir() + ("/.detee/cli")); |             .unwrap_or_else(|_| Self::home_dir() + ("/.detee/cli")); | ||||||
| 
 | 
 | ||||||
|         if !Path::new(&dir).exists() { |         if !Path::new(&dir).exists() { | ||||||
|  | |||||||
| @ -5,7 +5,6 @@ use std::sync::LazyLock; | |||||||
| 
 | 
 | ||||||
| pub const HRATLS_APP_PORT: u32 = 34500; | pub const HRATLS_APP_PORT: u32 = 34500; | ||||||
| pub const MAX_REDIRECTS: u16 = 3; | pub const MAX_REDIRECTS: u16 = 3; | ||||||
| pub const CONFIG_OVERRIDE_PATH_ENV: &str = "DETEE_API_USER_PATH"; |  | ||||||
| 
 | 
 | ||||||
| pub const STAGING_BRAIN_URLS: [&str; 3] = [ | pub const STAGING_BRAIN_URLS: [&str; 3] = [ | ||||||
|     "https://156.146.63.216:31337", // staging brain 1
 |     "https://156.146.63.216:31337", // staging brain 1
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user