Skip to content

daemon: make SessionDownReason::FsmError a unit variant#355

Merged
fujita merged 1 commit into
osrg:masterfrom
fujita:remove-fsmerror-payload
May 18, 2026
Merged

daemon: make SessionDownReason::FsmError a unit variant#355
fujita merged 1 commit into
osrg:masterfrom
fujita:remove-fsmerror-payload

Conversation

@fujita
Copy link
Copy Markdown
Member

@fujita fujita commented May 18, 2026

The State payload was never read — all match arms used FsmError(_). FsmError occurs mostly before Established (OPEN exchange errors) so BMP PeerDown is not sent anyway; in the rare post-Established case the state value adds no actionable information.

Remove the payload and the now-unnecessary #[allow(dead_code)] on SessionDownReason.

Assisted-by: Claude Sonnet 4.6 noreply@anthropic.com

The State payload was never read — all match arms used FsmError(_).
FsmError occurs mostly before Established (OPEN exchange errors) so
BMP PeerDown is not sent anyway; in the rare post-Established case
the state value adds no actionable information.

Remove the payload and the now-unnecessary #[allow(dead_code)] on
SessionDownReason.

Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: FUJITA Tomonori <tomonori.fujita@ntt.com>
@fujita fujita merged commit ce5359d into osrg:master May 18, 2026
3 checks passed
@fujita fujita deleted the remove-fsmerror-payload branch May 18, 2026 19:49
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.

1 participant