modified: src/simple_log.rs
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit

This commit is contained in:
Michael Wain 2024-10-07 03:06:57 +03:00
parent 02212266a4
commit 131a31eeca

View File

@ -1,7 +1,8 @@
use crossbeam_channel::unbounded; use crossbeam_channel::unbounded;
use crossbeam_channel::{ Sender, Receiver }; use crossbeam_channel::{ Sender, Receiver };
use std::sync::LazyLock;
static bnd: (Sender<Vec<u8>>, Receiver<Vec<u8>>) = unbounded::<Vec<u8>>(); static bnd: LazyLock<(Sender<Vec<u8>>, Receiver<Vec<u8>>)> = LazyLock::new(|| unbounded::<Vec<u8>>());
pub fn fetch_logs() -> Vec<u8> { pub fn fetch_logs() -> Vec<u8> {
if let Ok(bytes) = bnd.1.recv() { if let Ok(bytes) = bnd.1.recv() {