-
Notifications
You must be signed in to change notification settings - Fork 205
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
ledger-api-client: Rename maxInboundMessageSize
to maxInboundMetadataSize
.
#7290
ledger-api-client: Rename maxInboundMessageSize
to maxInboundMetadataSize
.
#7290
Conversation
CHANGELOG_BEGIN - [Scala Bindings] Rename a field in the ``LedgerClientConfiguration`` to ``maxInboundMetadataSize``, to match the builder Netty channel builder. It was incorrectly named ``maxInboundMessageSize``, which is a different channel property that configures the maximum message size, not the header size. CHANGELOG_END
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a look at this commit it appears that the actual fix should be to use the proper method, rather than renaming the configuration option.
I don't know what you mean, @stefanobaghino-da. I think the issue was that I copied the wrong name from the On the client side, gRPC errors are sent as part of the headers, not the body, so this field makes the header size configurable to make it possible to send a larger error message. |
Then I would suggest you add a further option. We need to be able to set the message size. |
Agreed. It turns out people already do this by passing an already-configured builder to |
The fix is so small and easy that I think it's fine to have them both in the same PR. Furthermore, I'd prefer if we could try to maintain the discipline to not break the API if we don't have to (which in Scala also means parameter names). |
OK, cool, I'll get it in. |
We use this a lot; easier if it's in the configuration. CHANGELOG_BEGIN - [Scala Bindings] Replace the ``LedgerClientConfiguration.maxInboundMessageSize`` property with a new one that represents the maximum size of the response body. CHANGELOG_END
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks excellent to me. 🙂
Changelog
LedgerClientConfiguration
tomaxInboundMetadataSize
, to match the builder Netty channel builder. It was incorrectly namedmaxInboundMessageSize
, which is a different channel property that configures the maximum message size, not the header size.LedgerClientConfiguration.maxInboundMessageSize
property with a new one that represents the maximum size of the response body.Pull Request Checklist
CHANGELOG_BEGIN
andCHANGELOG_END
tagsNOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.