Skip to content

refactor: reuse gRPC clients#1806

Merged
Mirko-von-Leipzig merged 2 commits intonextfrom
jmunoz-reuse-grpc-clients
Mar 19, 2026
Merged

refactor: reuse gRPC clients#1806
Mirko-von-Leipzig merged 2 commits intonextfrom
jmunoz-reuse-grpc-clients

Conversation

@juan518munoz
Copy link
Collaborator

Add ValidatorClient, a clonable thin wrapper around the gRPC client. This allows sharing of grpc channels accross actors.

Closes #1804

Copy link
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Could you add a changelog entry, e.g.

### Fixes

- Network transaction actors now share gRPC clients, reducing the number of file descriptors used

Could you confirm

Confirm that cloning a tonic gRPC client shares the underlying gRPC channel i.e. only consumes a single socket/file descriptor.

from #1804

@juan518munoz
Copy link
Collaborator Author

@Mirko-von-Leipzig added the changelog entre in a05aa0d

As per the cloning confirmation, I've verified it and replied on the issue itself:
#1804 (comment)

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 023e01f into next Mar 19, 2026
18 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the jmunoz-reuse-grpc-clients branch March 19, 2026 13:44
juan518munoz added a commit that referenced this pull request Mar 19, 2026
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.

Reuse gRPC clients

2 participants