modified: src/simple_log.rs
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit
This commit is contained in:
parent
02212266a4
commit
131a31eeca
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user