-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Remove panic from crdt counter #598
Remove panic from crdt counter #598
Conversation
Codecov Report
@@ Coverage Diff @@
## main #598 +/- ##
==========================================
- Coverage 51.47% 51.19% -0.29%
==========================================
Files 66 67 +1
Lines 6962 7053 +91
==========================================
+ Hits 3584 3611 +27
- Misses 2904 2960 +56
- Partials 474 482 +8
|
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.
Thank you for your contribution 👍🏼
I left a small comment below.
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.
Follow the comment above 😅
To prevent stopping the server in production environment, the panic methods were replaced with error methods. Modify test codes for counter As the panic methods in counter were replaced, the related test codes also were modified. Add error check for Increase method of counter Add error check for Increase method of counter
fd8f68d
to
e6200ba
Compare
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.
Thanks for your contribution. 👍
To prevent stopping the server in the production environment, the panic methods were replaced with error methods. Modify test codes for counter As the panic methods in the counter were replaced, the related test codes also were modified.
To prevent stopping the server in the production environment, the panic methods were replaced with error methods. Modify test codes for counter As the panic methods in the counter were replaced, the related test codes also were modified.
What this PR does / why we need it:
Remove the panic methods in
crdt/counter.go
Which issue(s) this PR fixes:
Related to #497 (
crdt/counter
)Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation:
Checklist: