mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +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() {
|
_ => match success.mime() {
|
||||||
"text/gemini" => from_stream_async(
|
"text/gemini" => from_stream_async(
|
||||||
connection.stream(),
|
connection.stream(),
|
||||||
cancellable.clone(),
|
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
|
cancellable.clone(),
|
||||||
(
|
(
|
||||||
0x400, // 1024 chunk
|
0x400, // 1024 chunk
|
||||||
0xfffff, // 1M limit
|
0xfffff, // 1M limit
|
||||||
|
|
@ -310,8 +310,8 @@ fn handle(
|
||||||
// * no dependency of Gemini library here, feel free to use any other `IOStream` processor
|
// * no dependency of Gemini library here, feel free to use any other `IOStream` processor
|
||||||
from_stream_async(
|
from_stream_async(
|
||||||
connection.stream(),
|
connection.stream(),
|
||||||
cancellable.clone(),
|
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
|
cancellable.clone(),
|
||||||
(
|
(
|
||||||
0x400, // 1024 bytes per chunk, optional step for images download tracking
|
0x400, // 1024 bytes per chunk, optional step for images download tracking
|
||||||
0xA00000 // 10M bytes max to prevent memory overflow if server play with promises
|
0xA00000 // 10M bytes max to prevent memory overflow if server play with promises
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue