/// How many items will be batched in a single HTTP request when downloading from the server
#[cfg(not(test))]
constDOWNLOAD_BATCH_SIZE: usize=30;
/// How many items will be batched in a single HTTP request when downloading from the server
#[cfg(test)]
constDOWNLOAD_BATCH_SIZE: usize=3;
/// A data source that combines two `CalDavSource`s, which is able to sync both sources.
///
/// Usually, you will only need to use a provider between a server and a local cache, that is to say a [`CalDavProvider`](crate::CalDavProvider), i.e. a `Provider<Cache, CachedCalendar, Client, RemoteCalendar>`. \
@ -388,45 +398,58 @@ where
}
asyncfnapply_remote_additions(
remote_additions: HashSet<Url>,
mutremote_additions: HashSet<Url>,
cal_local: &mutT,
cal_remote: &mutU,
progress: &mutSyncProgress,
cal_name: &str
){
//
//
//
//
//
// TODO: OPTIM: in the server -> local way, download all the content at once
progress.debug(&format!("> Applying a batch of remote additions locally")/* too bad Chunks does not implement ExactSizeIterator, that could provide useful debug info. See https://github.com/rust-itertools/itertools/issues/171 */);