Skip to content

Refactor varint constants for improved readability#744

Merged
Leomrlin merged 1 commit into
apache:masterfrom
SYaoJun:226_magic_2
Mar 2, 2026
Merged

Refactor varint constants for improved readability#744
Leomrlin merged 1 commit into
apache:masterfrom
SYaoJun:226_magic_2

Conversation

@SYaoJun

@SYaoJun SYaoJun commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Replace magic numbers with named constants for varint encoding/decoding.
This makes the code more maintainable and easier to understand.

fix: #745

How was this PR tested?

  • Tests have Added for the changes
  • Production environment verified

@kitalkuyo-gita kitalkuyo-gita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Leomrlin Leomrlin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Leomrlin
Leomrlin merged commit ace0762 into apache:master Mar 2, 2026
1 check 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.

Refactor magic numbers into named constants

3 participants