Skip to content

Commit

Permalink
Overwrite incoming config with current endpoint config
Browse files Browse the repository at this point in the history
  • Loading branch information
oteffahi committed Dec 6, 2024
1 parent b7d2051 commit 5157987
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commons/zenoh-protocol/src/core/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,9 @@ impl ConfigMut<'_> {
self.0.address(),
self.0.metadata(),
parameters::from_iter(parameters::sort(parameters::join(
self.0.config().iter(),
// Endpoint config overwrites incoming config
iter.map(|(k, v)| (k.borrow(), v.borrow())),
self.0.config().iter(),
))),
)?;

Expand Down

0 comments on commit 5157987

Please sign in to comment.