Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
ThalusA committed Jun 6, 2022
2 parents 8ab38e8 + bfd92ff commit 4fd2607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Receiver {
pub fn new() -> Self {
// You can manage state here, such as a buffer of audio packet bytes so
// you can later store them in intervals.
let dmr_local_rx_addr = env::var("LOCAL_TX_ADDR")
let dmr_local_rx_addr = env::var("LOCAL_RX_ADDR")
.expect("Expected a local rx address in the environment");

let socket = UdpSocket::bind(dmr_local_rx_addr)
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async fn main() {
dotenv().ok();

env::var("TARGET_RX_ADDR").expect("Expected a target rx address in the environment");
env::var("LOCAL_TX_ADDR").expect("Expected a local rx address in the environment");
env::var("LOCAL_RX_ADDR").expect("Expected a local rx address in the environment");

let token = env::var("BOT_TOKEN").expect("Expected a token in the environment");

Expand Down

0 comments on commit 4fd2607

Please sign in to comment.