mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
reorder NS position
This commit is contained in:
parent
dbadbfe310
commit
1d9e0bf9b2
@ -229,13 +229,7 @@ impl Page {
|
|||||||
Some(&cancellable.clone()),
|
Some(&cancellable.clone()),
|
||||||
move |o| match o {
|
move |o| match o {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
// Update
|
// Define local namespace
|
||||||
meta.borrow_mut().status = Some(Status::Request);
|
|
||||||
meta.borrow_mut().description = Some(gformat!("Request data from {host}.."));
|
|
||||||
|
|
||||||
action_update.activate(Some(&id));
|
|
||||||
|
|
||||||
// Define local NS
|
|
||||||
use gemini::client::{
|
use gemini::client::{
|
||||||
connection::input_stream::ByteBuffer,
|
connection::input_stream::ByteBuffer,
|
||||||
response::{
|
response::{
|
||||||
@ -247,7 +241,13 @@ impl Page {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Read response
|
// Update page status
|
||||||
|
meta.borrow_mut().status = Some(Status::Request);
|
||||||
|
meta.borrow_mut().description = Some(gformat!("Request data from {host}.."));
|
||||||
|
|
||||||
|
action_update.activate(Some(&id));
|
||||||
|
|
||||||
|
// Create new byte buffer and read server response
|
||||||
ByteBuffer::new().read_input_stream_async(
|
ByteBuffer::new().read_input_stream_async(
|
||||||
connection.input_stream(),
|
connection.input_stream(),
|
||||||
cancellable.clone(),
|
cancellable.clone(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user