Skip to content

Commit

Permalink
rename chat.rs to sync_chat.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Mar 2, 2024
1 parent 8e507be commit ad69061
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ env_logger = "0.11"
hyper = { version = "0.14.28", features = ["full"] }

[[example]]
name = "chat"
path = "examples/chat.rs"
name = "sync_chat"
path = "examples/sync_chat.rs"
test = false
bench = false
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /usr/src/app
COPY . .

# Build the Rust project
RUN cargo build --release --package sfu --example chat
RUN cargo build --release --package sfu --example sync_chat

# Expose the TCP port the signal server will listen on
EXPOSE 8080
Expand All @@ -18,4 +18,4 @@ EXPOSE 3478-3495/udp
RUN mkdir -p logs

# Command to run the server
CMD ./target/release/examples/chat -f -d --level info > ./logs/sfu.log 2>&1 & echo $! > server_pid.txt & cargo test --release --no-fail-fast -- --show-output > ./logs/test.log 2>&1
CMD ./target/release/examples/sync_chat -f -d --level info > ./logs/sfu.log 2>&1 & echo $! > server_pid.txt & cargo test --release --no-fail-fast -- --show-output > ./logs/test.log 2>&1
2 changes: 1 addition & 1 deletion examples/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
// };

// Uncomment this to enable simulcast. The actual selected
// simulcast level is hardcoded in chat.rs.
// simulcast level is hardcoded in sync_chat.
// sendEncodings: [
// { rid: "h", maxBitrate: 700 * 1024 },
// { rid: "l", maxBitrate: 150 * 1024 }
Expand Down
File renamed without changes.

0 comments on commit ad69061

Please sign in to comment.