add async feature #1

Merged
b4tman merged 62 commits from async into master 2023-08-18 06:29:46 +00:00
Showing only changes of commit acf741e721 - Show all commits

View File

@ -261,9 +261,9 @@ pub mod reader_sync {
zip_file zip_file
.start_file("test.json", options) .start_file("test.json", options)
.expect("zip start file"); .expect("zip start file");
zip_file let data = serde_json::to_vec(&batch).unwrap();
.write(serde_json::to_vec(&batch).unwrap().as_slice()) let amount = zip_file.write(data.as_slice()).expect("write entry");
.expect("write entry"); assert_eq!(amount, data.len());
zip_file.finish().expect("finish zip file"); zip_file.finish().expect("finish zip file");
} }