update arguments order

This commit is contained in:
yggverse 2025-02-03 13:49:31 +02:00
parent 9046a18e8d
commit 55e42951b0

View file

@ -238,8 +238,8 @@ fn handle(
_ => match success.mime() {
"text/gemini" => from_stream_async(
connection.stream(),
cancellable.clone(),
Priority::DEFAULT,
cancellable.clone(),
(
0x400, // 1024 chunk
0xfffff, // 1M limit
@ -310,8 +310,8 @@ fn handle(
// * no dependency of Gemini library here, feel free to use any other `IOStream` processor
from_stream_async(
connection.stream(),
cancellable.clone(),
Priority::DEFAULT,
cancellable.clone(),
(
0x400, // 1024 bytes per chunk, optional step for images download tracking
0xA00000 // 10M bytes max to prevent memory overflow if server play with promises