mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 06:47:56 +01:00
Whoops that was a premature push
This commit is contained in:
parent
cf3853263a
commit
7a85667a44
@ -371,13 +371,13 @@ impl card_d_e_s_fire_e_v2::Server for User {
|
|||||||
let _span = tracing::trace_span!(target: TARGET, "get_space_info").entered();
|
let _span = tracing::trace_span!(target: TARGET, "get_space_info").entered();
|
||||||
tracing::trace!("method call");
|
tracing::trace!("method call");
|
||||||
|
|
||||||
let space = if let Some(space) = CONFIG.get().and_then(|c| c.spacename.as_ref()) {
|
let space = if let Some(space) = CONFIG.get().map(|c| c.spacename.as_str()) {
|
||||||
space
|
space
|
||||||
} else {
|
} else {
|
||||||
return Promise::err(Error::failed("No space name configured".to_string()));
|
return Promise::err(Error::failed("No space name configured".to_string()));
|
||||||
};
|
};
|
||||||
|
|
||||||
let url = if let Some(url) = CONFIG.get().and_then(|c| c.instanceurl.as_ref()) {
|
let url = if let Some(url) = CONFIG.get().map(|c| c.instanceurl.as_str()) {
|
||||||
url
|
url
|
||||||
} else {
|
} else {
|
||||||
return Promise::err(Error::failed("No instance url configured".to_string()));
|
return Promise::err(Error::failed("No instance url configured".to_string()));
|
||||||
|
@ -168,8 +168,8 @@ impl Default for Config {
|
|||||||
tlskeylog: None,
|
tlskeylog: None,
|
||||||
verbosity: 0,
|
verbosity: 0,
|
||||||
logging: LogConfig::default(),
|
logging: LogConfig::default(),
|
||||||
instanceurl: None,
|
instanceurl: "".into(),
|
||||||
spacename: None,
|
spacename: "".into(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user