mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-03-07 00:37:43 +00:00
remove logging
This commit is contained in:
parent
db56962eea
commit
c807808231
1 changed files with 0 additions and 3 deletions
|
@ -59,7 +59,6 @@ impl Debug for EditQueue {
|
|||
|
||||
impl EditQueue {
|
||||
pub fn handle_request(&self, responder: wry::webview::RequestAsyncResponder) {
|
||||
println!("handling request {self:?}");
|
||||
let mut queue = self.queue.lock().unwrap();
|
||||
if let Some(bytes) = queue.pop() {
|
||||
responder.respond(wry::http::Response::new(bytes));
|
||||
|
@ -69,10 +68,8 @@ impl EditQueue {
|
|||
}
|
||||
|
||||
pub fn add_edits(&self, edits: Vec<u8>) {
|
||||
println!("adding edits {self:?}");
|
||||
let mut responder = self.responder.lock().unwrap();
|
||||
if let Some(responder) = responder.take() {
|
||||
println!("responding with {edits:?}");
|
||||
responder.respond(wry::http::Response::new(edits));
|
||||
} else {
|
||||
self.queue.lock().unwrap().push(edits);
|
||||
|
|
Loading…
Add table
Reference in a new issue