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

Added $opts array for customize gRPC client options #137

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

aneterial
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru

Pull request type

Please check the type of change your PR introduces:

  • Feature

What is the current behavior?

Issue Number: #136

What is the new behavior?

You can customize the gRPC client's behavior by setting options in config array

Example of using:

$config = [
    // ...
    'opts' => [
        'grpc.max_receive_message_length' => 8*1024*1024,
        'grpc.default_compression_algorithm' => 2,
        'grpc.default_compression_level' => 2,
    ],
]
$ydb = new \YdbPlatform\Ydb\Ydb($config);

Copy link
Member

@rekby rekby left a comment

Choose a reason for hiding this comment

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

Hello @aneterial.

Thanks for the PR.
Great job!

I have few small comments for it.

src/Ydb.php Outdated Show resolved Hide resolved
src/Ydb.php Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@aneterial aneterial requested a review from rekby April 15, 2024 20:38
@rekby rekby merged commit 78b5db4 into ydb-platform:main Apr 16, 2024
24 checks passed
@rekby
Copy link
Member

rekby commented Apr 16, 2024

@aneterial thanks for the PR :)

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.

2 participants