broker: switch pub_timeout from 9 to 4 secs

This commit is contained in:
irriden
2023-07-25 17:47:40 +00:00
parent bf0a0d6ae9
commit 44d849dccf

View File

@@ -218,7 +218,7 @@ fn pub_timeout(
log::error!("failed to pub to link_tx! {:?}", e);
}
// and receive from the correct client (or timeout to next)
let dur = Duration::from_secs(9);
let dur = Duration::from_secs(4);
if let Ok((cid, topic_end, reply)) = msg_rx.recv_timeout(dur) {
if &cid == client_id {
return Some(ChannelReply::new(topic_end, reply));