Skip to main content

copy_entries

Function copy_entries 

Source
async fn copy_entries<Fut: Future<Output = Result<()>>>(
    entries: impl Stream<Item = Result<(String, String)>>,
    put_batch: impl FnMut(Vec<(String, String)>) -> Fut,
) -> Result<()>
Expand description

Copies entries into WAL-backed puts, waiting for each write before reading further. An entry larger than the payload budget is written on its own.