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

[INLONG-5859][TubeMQ] Remove the redundant codes in DefaultOffsetManager #5860

Merged

Conversation

liangyepianzhou
Copy link
Contributor

Prepare a Pull Request

Motivation

The code duplication rate for method getAndResetTmpOffset and method setTmpOffset is as high as 90%.
In fact, method getAndResetTmpOffset can reuse method setTmpOffset.

Modifications

The code duplication rate for method getAndResetTmpOffset and method setTmpOffset is as high as 90%.
In fact, method getAndResetTmpOffset can reuse method setTmpOffset.

@healchow healchow changed the title [INLONG-5859][TubeMq]Optimize redundant code in DefaultOffsetManager [INLONG-5859][TubeMQ] Remove the redundant codes in DefaultOffsetManager Sep 12, 2022
@dockerzhang dockerzhang merged commit a87dd8a into apache:master Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improve][TubeMQ] Optimize redundant code in DefaultOffsetManager
4 participants