mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
broker: increase mqtt timeout from 4s to 10s
This commit is contained in:
@@ -188,7 +188,7 @@ fn pub_timeout(
|
|||||||
log::error!("failed to pub to link_tx! {:?}", e);
|
log::error!("failed to pub to link_tx! {:?}", e);
|
||||||
}
|
}
|
||||||
// and receive from the correct client (or timeout to next)
|
// and receive from the correct client (or timeout to next)
|
||||||
let dur = Duration::from_secs(4);
|
let dur = Duration::from_secs(10);
|
||||||
if let Ok((cid, topic_end, reply)) = msg_rx.recv_timeout(dur) {
|
if let Ok((cid, topic_end, reply)) = msg_rx.recv_timeout(dur) {
|
||||||
if &cid == client_id {
|
if &cid == client_id {
|
||||||
return Some(ChannelReply::new(topic_end, reply));
|
return Some(ChannelReply::new(topic_end, reply));
|
||||||
|
|||||||
Reference in New Issue
Block a user