mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-10 13:46:28 +00:00
Use a buffered reader
This commit is contained in:
@@ -99,6 +99,7 @@ impl PipedArchiveBuilder {
|
||||
|
||||
let mdb_path = env.path().join("data.mdb");
|
||||
let mut file = std::fs::File::open(&mdb_path)?;
|
||||
let mut file = std::io::BufReader::with_capacity(16 * 4096, &mut file);
|
||||
std::io::copy(&mut file, cloned_writer.deref_mut())?;
|
||||
|
||||
self.send_cancellation.send(CancellationMessage::ClosingPipe);
|
||||
|
Reference in New Issue
Block a user