2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 03:11:24 +00:00

Increase buffer size for AsyncRead -> Stream conversion

This commit is contained in:
asonix 2024-02-22 16:25:03 -06:00
parent 00a08a8bc9
commit f3e455a1c3

View file

@ -225,7 +225,7 @@ impl Store for ObjectStore {
where
Reader: AsyncRead + Unpin + 'static,
{
self.save_stream(ReaderStream::new(reader), content_type)
self.save_stream(ReaderStream::with_capacity(reader, 1024 * 16), content_type)
.await
}