Skip to content

Commit

Permalink
feat(rust): let relay service overwrite relays
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjoDeundiak committed Jan 16, 2025
1 parent 4a46cd5 commit 3c5da34
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ impl Worker for RelayService {
let payload = final_relay_name.clone().encode()?;
let final_relay_address = Address::from_string(final_relay_name);

if ctx.stop_address(&final_relay_address).is_ok() {
info!("Removed existing alias on {}", final_relay_address);
}

self.options
.setup_flow_control_for_relay(ctx.flow_controls(), &final_relay_address);

Expand Down

0 comments on commit 3c5da34

Please sign in to comment.