Function pimsync::config::init_storage
source ยท async fn init_storage(
raw_storages: &mut HashMap<String, Scfg>,
parsed_storages: &mut HashMap<String, EitherStorage>,
storage_name: &str,
) -> Result<EitherStorage>
Expand description
If the storage is in raw_storages
, initialise it and add it into parsed_storages
.
Otherwise, find it in parsed_storages
.