Skip to content

Commit

Permalink
🐛 fix(input): Append input to server's session ID for now (#56)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
wanjohiryan authored May 21, 2024
1 parent 9bb1940 commit 8304ca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/input/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8304ca0

Please sign in to comment.