fix the unused source_url setting
All checks were successful
Build and publish the docker image / build (push) Successful in 34s
All checks were successful
Build and publish the docker image / build (push) Successful in 34s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
4c11ee4630
commit
f4dd0995a7
@ -64,7 +64,6 @@ impl Settings {
|
||||
}
|
||||
|
||||
let mut settings: Settings = s.build()?.try_deserialize::<Settings>()?;
|
||||
settings.check_url();
|
||||
|
||||
if settings.cache.is_none() {
|
||||
let tmp = env::temp_dir().join("libmedium_cache_path");
|
||||
@ -88,11 +87,6 @@ impl Settings {
|
||||
Ok(settings)
|
||||
}
|
||||
|
||||
#[cfg(not(tarpaulin_include))]
|
||||
fn check_url(&self) {
|
||||
Url::parse(&self.source_code).expect("Please enter a URL for source_code in settings");
|
||||
}
|
||||
|
||||
#[cfg(not(tarpaulin_include))]
|
||||
pub fn get_ip(&self) -> String {
|
||||
format!("{}:{}", self.ip, self.port)
|
||||
|
Loading…
x
Reference in New Issue
Block a user