rwhod: allow configuring packet send interval

This commit is contained in:
2026-07-20 21:52:34 +09:00
parent c0c0e47c8a
commit 536b0c4b54
4 changed files with 34 additions and 2 deletions
+2 -1
View File
@@ -114,8 +114,9 @@ pub async fn rwhod_packet_sender_task(
socket: Arc<UdpSocket>,
interfaces: Vec<RwhodSendTarget>,
ignore_list: Option<IgnoreList>,
send_interval: TokioDuration,
) -> anyhow::Result<()> {
let mut interval = interval(TokioDuration::from_secs(60));
let mut interval = interval(send_interval);
loop {
interval.tick().await;