Skip to content

Commit

Permalink
Assigned location houldn't be random
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez committed Jun 11, 2024
1 parent 7bc29a7 commit 7d5d65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/operations/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ impl Operation for ConnectOp {
.clone()
.expect("should be already set at the p2p bridge level");
let this_peer = op_manager.ring.own_location();
let assigned_location = Location::random();
let assigned_location = Location::from_address(&joiner.addr);

let new_peer_loc = PeerKeyLocation {
location: Some(assigned_location),
Expand Down

0 comments on commit 7d5d65f

Please sign in to comment.