Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(iroha_torii): spawn a single server task with only one TcpListener #5122

Merged

Conversation

0x009922
Copy link
Contributor

@0x009922 0x009922 commented Oct 4, 2024

Context

Split from #5087

Chore refactor: there was extra code complexity in Torii due to iroha_primities::SocketAddr not implementing tokio::ToSocketAddrs.

Solution

Workarounded with a match construction.

Migration Guide (optional)

None


Review notes (optional)

None

Checklist

  • I've read CONTRIBUTING.md.
  • (optional) I've written unit tests for the code changes.
  • All review comments have been resolved.
  • All CI checks pass.

@0x009922 0x009922 added Refactor Improvement to overall code quality Chore This is a small task that can be done at any point in time and is easier than others labels Oct 4, 2024
@0x009922 0x009922 self-assigned this Oct 4, 2024
@github-actions github-actions bot added the api-changes Changes in the API for client libraries label Oct 4, 2024
@0x009922 0x009922 changed the title refactor(iroha_torii): spawn a single server task refactor(iroha_torii): spawn a single server task with only one TcpListener Oct 4, 2024
@s8sato s8sato self-assigned this Oct 7, 2024
@0x009922 0x009922 enabled auto-merge (squash) October 8, 2024 05:16
@0x009922 0x009922 force-pushed the refactor/torii-single-tcp branch from ceed6a8 to 2861ab3 Compare October 8, 2024 05:16
@mversic mversic requested a review from s8sato October 8, 2024 05:18
@0x009922 0x009922 merged commit 5e45ade into hyperledger-iroha:main Oct 8, 2024
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-changes Changes in the API for client libraries Chore This is a small task that can be done at any point in time and is easier than others Refactor Improvement to overall code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants