mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
test ggemini v0.20.0 features
This commit is contained in:
parent
1a9b4802fa
commit
e123c1c1cd
3 changed files with 8 additions and 19 deletions
|
|
@ -282,11 +282,7 @@ fn handle(
|
|||
file_output_stream,
|
||||
cancellable.clone(),
|
||||
Priority::DEFAULT,
|
||||
file_output_stream::Size {
|
||||
chunk: 0x100000, // 1M bytes per chunk
|
||||
limit: None, // unlimited
|
||||
total: 0, // initial totals
|
||||
},
|
||||
file_output_stream::Size::default(),
|
||||
(
|
||||
// on chunk
|
||||
{
|
||||
|
|
@ -336,9 +332,8 @@ fn handle(
|
|||
Priority::DEFAULT,
|
||||
cancellable.clone(),
|
||||
memory_input_stream::Size {
|
||||
chunk: 0x400, // 1024 bytes chunk
|
||||
limit: 0xfffff, // 1M limit
|
||||
total: 0, // initial totals
|
||||
..memory_input_stream::Size::default()
|
||||
},
|
||||
(
|
||||
|_, _| {}, // on chunk (maybe nothing to count yet @TODO)
|
||||
|
|
@ -440,9 +435,8 @@ fn handle(
|
|||
Priority::DEFAULT,
|
||||
cancellable.clone(),
|
||||
memory_input_stream::Size {
|
||||
chunk: 0x400, // 1024 bytes chunk
|
||||
limit: 0xA00000, // 10M limit
|
||||
total: 0, // initial totals
|
||||
..memory_input_stream::Size::default()
|
||||
},
|
||||
(
|
||||
move |_, total| status.set_description(Some(&format!("Download: {}", total.bytes()))),
|
||||
|
|
|
|||
|
|
@ -193,9 +193,8 @@ impl Nex {
|
|||
Priority::DEFAULT,
|
||||
cancellable.clone(),
|
||||
ggemini::gio::memory_input_stream::Size {
|
||||
chunk: 0x400, // 1024 bytes chunk
|
||||
limit: 0xA00000, // 10M limit
|
||||
total: 0, // initial totals
|
||||
..ggemini::gio::memory_input_stream::Size::default()
|
||||
},
|
||||
(
|
||||
{
|
||||
|
|
@ -343,11 +342,7 @@ fn download(s: SocketConnection, (p, u): (Rc<Page>, Uri), c: Cancellable) {
|
|||
file_output_stream,
|
||||
c.clone(),
|
||||
Priority::DEFAULT,
|
||||
file_output_stream::Size {
|
||||
chunk: 0x100000, // 1M bytes per chunk
|
||||
limit: None, // unlimited
|
||||
total: 0, // initial totals
|
||||
},
|
||||
file_output_stream::Size::default(),
|
||||
(
|
||||
// on chunk
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue