Skip to content

fix: avoid unused allFinished copies#2830

Merged
richard-ramos merged 1 commit into
masterfrom
discard-allfut
Jul 15, 2026
Merged

fix: avoid unused allFinished copies#2830
richard-ramos merged 1 commit into
masterfrom
discard-allfut

Conversation

@richard-ramos

Copy link
Copy Markdown
Member

Summary

Use allFutures for teardown drains where the result from allFinished was discarded. This keeps the same wait-for-completion behavior while avoiding the unused sequence copy

Affected Areas

  • Transports: TCP and QUIC close-future drains
  • Peer Management / Discovery: ConnManager on-close drain
  • Protocol Logic: mplex and yamux channel task drains

References

@github-project-automation github-project-automation Bot moved this from new to In Progress in nim-libp2p Jul 15, 2026
@richard-ramos
richard-ramos added this pull request to the merge queue Jul 15, 2026
Merged via the queue into master with commit dd7b5d5 Jul 15, 2026
33 of 34 checks passed
@richard-ramos
richard-ramos deleted the discard-allfut branch July 15, 2026 21:34
@github-project-automation github-project-automation Bot moved this from In Progress to done in nim-libp2p Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: done

Development

Successfully merging this pull request may close these issues.

3 participants