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

configure the inner client of either BigTableConnection or BigTable #96

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

JorritSalverda
Copy link
Contributor

In order to change settings like max_decoding_message_size

Solves #95

@liufuyang
Copy link
Owner

@JorritSalverda Thank you for adding this feature. Do you mind rebasing onto current main and I will let the CI build run again? :)

Copy link
Owner

@liufuyang liufuyang left a comment

Choose a reason for hiding this comment

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

Thanks, and greate with an example. I think it looks good after the build works (I think so if you rebase :) )

bigtable_rs/build.rs Outdated Show resolved Hide resolved
@JorritSalverda
Copy link
Contributor Author

Hi @liufuyang , it's rebased from your latest changes in main now.

/// Provide a convenient method to update the inner `BigtableClient` so a newly configured client can be set
pub fn configure_inner_client(
&mut self,
config_fn: fn(BigtableClient<AuthSvc>) -> BigtableClient<AuthSvc>,
Copy link
Owner

Choose a reason for hiding this comment

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

Oh, one more thing, is it possible to pass in a &mut here, so we do not need to do the clone below?

Copy link
Owner

Choose a reason for hiding this comment

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

Nevermind, maybe that clone is not avoidable? Haven't written Rust for a while so my Rust is a bit rusty...

@liufuyang liufuyang merged commit b4b5244 into liufuyang:main Oct 17, 2024
2 checks passed
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