From 2b244ca974804bf7789f77130a2dff05edbba56a Mon Sep 17 00:00:00 2001 From: Yorick de Wid Date: Mon, 21 Aug 2023 10:18:47 +0200 Subject: [PATCH] Read from signal FIFO --- glonax-proxy/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glonax-proxy/src/main.rs b/glonax-proxy/src/main.rs index 66cd1600..582cc760 100644 --- a/glonax-proxy/src/main.rs +++ b/glonax-proxy/src/main.rs @@ -102,7 +102,7 @@ async fn daemonize(config: &config::ProxyConfig) -> anyhow::Result<()> { log::info!("Starting proxy services"); - let (tx, _rx) = broadcast::channel(16); + let (tx, _rx) = broadcast::channel(8); let (motion_tx, mut motion_rx) = tokio::sync::mpsc::channel(16); @@ -174,7 +174,7 @@ async fn daemonize(config: &config::ProxyConfig) -> anyhow::Result<()> { loop { log::debug!("Waiting for FIFO connection: {}", "signal"); - let mut client = glonax::transport::Client::open_write("signal") + let mut client = glonax::transport::Client::open_read("signal") .await .unwrap();