fix the unused source_url setting
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:
ngn 2025-01-20 04:45:48 +03:00
parent 4c11ee4630
commit f4dd0995a7
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -64,7 +64,6 @@ impl Settings {
} }
let mut settings: Settings = s.build()?.try_deserialize::<Settings>()?; let mut settings: Settings = s.build()?.try_deserialize::<Settings>()?;
settings.check_url();
if settings.cache.is_none() { if settings.cache.is_none() {
let tmp = env::temp_dir().join("libmedium_cache_path"); let tmp = env::temp_dir().join("libmedium_cache_path");
@ -88,11 +87,6 @@ impl Settings {
Ok(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))] #[cfg(not(tarpaulin_include))]
pub fn get_ip(&self) -> String { pub fn get_ip(&self) -> String {
format!("{}:{}", self.ip, self.port) format!("{}:{}", self.ip, self.port)