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

[Refactor] Reduce redundancy by introducing consistent functional interface in SessionConnection #14212

Merged

Conversation

SzyWilliam
Copy link
Member

@SzyWilliam SzyWilliam commented Nov 26, 2024

The SessionConnection has 26 times of redundant control clauses.
We can unify them by introducing a CheckedSupplier.
This is a WIP for demo.

Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

Awesome work!
Please fix ci

@Cpaulyz
Copy link
Contributor

Cpaulyz commented Nov 27, 2024

Hi, William!

Great work on this pull request! Your approach and the implementation are impressive, and it's clear that a lot of thought and effort went into solving the problem effectively.

While I noticed that the CI checks haven't passed, I have full confidence in the correctness of your changes. The approach you've taken is solid and aligns well with the project’s goals. Given the quality of the code and the improvements you have made, I'm happy to approve this PR. 🥰🥰

Looking forward to seeing more contributions from you! Keep up the great work, and I’m excited to review more of your PRs in the future. 🔥🔥🚀

@MiniSho
Copy link
Contributor

MiniSho commented Nov 27, 2024

William - YOU ARE TRULY AN ASSET TO THE APACHE IOTDB!

Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

LGTM

@OneSizeFitsQuorum OneSizeFitsQuorum merged commit 72e69ae into apache:master Dec 2, 2024
31 of 32 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.

4 participants