mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 23:34:19 +01:00
loop heartbeat
This commit is contained in:
@@ -170,7 +170,7 @@ fn make_and_launch_client(
|
||||
log::info!("{:?}", config);
|
||||
|
||||
// heartbeat loop
|
||||
thread::spawn(move || {
|
||||
thread::spawn(move || loop {
|
||||
thread::sleep(Duration::from_secs(60));
|
||||
let _ = tx.send(Event::HeartBeat);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user