clean up
This commit is contained in:
parent
9dfc3b21ff
commit
0b0779f8b7
32 changed files with 137 additions and 181 deletions
|
@ -2,7 +2,7 @@ use log::{info, warn};
|
|||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct Config {
|
||||
redis_url: Option<String>,
|
||||
pub redis_url: Option<String>,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
|
@ -21,8 +21,4 @@ impl Config {
|
|||
|
||||
Self::new(redis_url)
|
||||
}
|
||||
|
||||
pub fn redis_url(&self) -> Option<&str> {
|
||||
self.redis_url.as_deref()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue