Skip to content

fix(relay): avoid panic when dst has connections without reservations#6472

Open
dariusc93 wants to merge 4 commits into
libp2p:masterfrom
dariusc93:fix/relay-avoid-panic
Open

fix(relay): avoid panic when dst has connections without reservations#6472
dariusc93 wants to merge 4 commits into
libp2p:masterfrom
dariusc93:fix/relay-avoid-panic

Conversation

@dariusc93
Copy link
Copy Markdown
Member

Description

Remove assertion and change the iteration to find a connection actually holding an active reservation.

AI Assistance Disclosure

Tools used (required — write none if no AI was used): e.g. none / Claude Code / Copilot / Cursor / ChatGPT

Attestation (required):

  • I have read every line of this diff, understand what it does, and can explain it in review.

Notes & open questions

reported in #6154 (review)

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@dariusc93 dariusc93 marked this pull request as ready for review June 6, 2026 13:48
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