From 8304ca08a45e6a3e47a264c2fa13e3983b9010ef Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Tue, 21 May 2024 03:13:52 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(input):=20Append=20`input`?= =?UTF-8?q?=20to=20server's=20session=20ID=20for=20now=20(#56)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description **What issue are you solving (or what feature are you adding) and how are you doing it?** I am having issues trying to append `input` to the session_id using bash. Most probably because supervisord is using the ENV variables already available in the container. So, here we append the `input` part inside the rust binary instead. This is much cleaner and it works. --- bin/input/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/input/src/main.rs b/bin/input/src/main.rs index 46c361ee..606a5aa8 100644 --- a/bin/input/src/main.rs +++ b/bin/input/src/main.rs @@ -61,7 +61,9 @@ async fn main() -> anyhow::Result<()> { .await .context("failed to create MoQ Transport session")?; - let (prod, sub) = serve::Track::new(config.namespace, config.track).produce(); + let namespace = format!("{}input", config.namespace); + + let (prod, sub) = serve::Track::new(namespace, config.track).produce(); let input = input::Subscriber::new(sub);