mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
update arguments order
This commit is contained in:
parent
9046a18e8d
commit
55e42951b0
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue