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

rpc: re-use server builder per rpc interface #6652

Merged
merged 6 commits into from
Dec 13, 2024

Conversation

niklasad1
Copy link
Member

This PR changes that the server builder is created once and shared/cloned for each connection to avoid some extra overhead to construct this for each connection (as it was before).

I don't know why I constructed a new builder for each connection because it's not needed but shouldn't make a big difference to my understanding.

@niklasad1 niklasad1 added T0-node This PR/Issue is related to the topic “node”. A4-needs-backport Pull request must be backported to all maintained releases. labels Nov 26, 2024
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/12033419110
Failed job name: fmt

@niklasad1
Copy link
Member Author

bot fmt

@command-bot
Copy link

command-bot bot commented Nov 26, 2024

@niklasad1 https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7820153 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 6-ea334bdc-3e7c-499b-8cde-60e8fde27a7a to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Nov 26, 2024

@niklasad1 Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7820153 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7820153/artifacts/download.

@niklasad1 niklasad1 requested a review from lexnv December 12, 2024 10:12
prdoc/pr_6652.prdoc Outdated Show resolved Hide resolved
@lexnv lexnv added this pull request to the merge queue Dec 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 12, 2024
@niklasad1 niklasad1 added this pull request to the merge queue Dec 13, 2024
Merged via the queue into master with commit e1add3e Dec 13, 2024
195 of 199 checks passed
@niklasad1 niklasad1 deleted the na-rpc-server-reuse-builder branch December 13, 2024 10:26
@paritytech-cmd-bot-polkadot-sdk

Created backport PR for stable2407:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-6652-to-stable2407
git worktree add --checkout .worktree/backport-6652-to-stable2407 backport-6652-to-stable2407
cd .worktree/backport-6652-to-stable2407
git reset --hard HEAD^
git cherry-pick -x e1add3e8a8faa611e63e3f962b6c5b13ba37e449
git push --force-with-lease

github-actions bot pushed a commit that referenced this pull request Dec 13, 2024
This PR changes that the server builder is created once and
shared/cloned for each connection to avoid some extra overhead to
construct this for each connection (as it was before).

I don't know why I constructed a new builder for each connection because
it's not needed but shouldn't make a big difference to my understanding.

---------

Co-authored-by: command-bot <>
(cherry picked from commit e1add3e)
@paritytech-cmd-bot-polkadot-sdk

Successfully created backport PR for stable2409:

github-actions bot pushed a commit that referenced this pull request Dec 13, 2024
This PR changes that the server builder is created once and
shared/cloned for each connection to avoid some extra overhead to
construct this for each connection (as it was before).

I don't know why I constructed a new builder for each connection because
it's not needed but shouldn't make a big difference to my understanding.

---------

Co-authored-by: command-bot <>
(cherry picked from commit e1add3e)
@paritytech-cmd-bot-polkadot-sdk

Successfully created backport PR for stable2412:

EgorPopelyaev pushed a commit that referenced this pull request Dec 13, 2024
Backport #6652 into `stable2412` from niklasad1.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Niklas Adolfsson <[email protected]>
EgorPopelyaev pushed a commit that referenced this pull request Dec 17, 2024
Backport #6652 into `stable2409` from niklasad1.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Niklas Adolfsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A4-needs-backport Pull request must be backported to all maintained releases. T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants