Skip to content

fix: do not send a sync message when changing "configured_addr" - #8703

Merged
link2xt merged 1 commit into
mainfrom
link2xt/dont-sync-configured_addr
Sep 17, 2026
Merged

link2xt merged 1 commit into
mainfrom
link2xt/dont-sync-configured_addr

Conversation

@link2xt

@link2xt link2xt commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Sending transport is not synchronized since cd42efb (PR #8510) so there is no need to send a sync message when the sending transport is changed.

@link2xt
link2xt force-pushed the link2xt/dont-sync-configured_addr branch from 78609fa to 0161855 Compare September 16, 2026 19:41
@link2xt
link2xt marked this pull request as ready for review September 16, 2026 19:42
@link2xt
link2xt force-pushed the link2xt/dont-sync-configured_addr branch 2 times, most recently from 6612faa to 138c23e Compare September 16, 2026 19:50
@link2xt
link2xt marked this pull request as draft September 17, 2026 06:50
@link2xt
link2xt force-pushed the link2xt/dont-sync-configured_addr branch from 138c23e to 4cfe0d8 Compare September 17, 2026 07:04

/// Promotes `addr` on `alice` and syncs the transport update to `alice2`,
/// whose own primary transport must stay unchanged.
async fn promote_transport_and_sync(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is moved into the test above, but with checks like > for add_timestamp replaced with assert_eq!

@link2xt
link2xt force-pushed the link2xt/dont-sync-configured_addr branch from 4cfe0d8 to 5d5e4de Compare September 17, 2026 07:06
@link2xt
link2xt marked this pull request as ready for review September 17, 2026 07:06
@link2xt
link2xt force-pushed the link2xt/dont-sync-configured_addr branch from 5d5e4de to 134908b Compare September 17, 2026 12:44
Sending transport is not synchronized since
cd42efb
(PR #8510)
so there is no need to send a sync message
when the sending transport is changed.
@link2xt
link2xt force-pushed the link2xt/dont-sync-configured_addr branch from 134908b to 0d15a77 Compare September 17, 2026 13:29
/// and does not bump sending transport `add_timestamp`.
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn test_promote_transport_same_second() -> Result<()> {
async fn test_no_configured_addr_synchronization() -> Result<()> {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to look at the test in detail, it is going to be removed anyway when ConfiguredAddr is not possible to set anymore.

@hpk42 hpk42 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's fine to merge this.

@link2xt
link2xt merged commit 349c965 into main Sep 17, 2026
30 checks passed
@link2xt
link2xt deleted the link2xt/dont-sync-configured_addr branch September 17, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants