-
Notifications
You must be signed in to change notification settings - Fork 61
add event subscribe module and implement subscribe function #27
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
Conversation
|
Warnings are found on analyzing the commit a2daf8e. 4 warnings: We recommend to address them as possible, for example, update outdated dependencies, fix the tool's configuration, configure If you are struggling with these errors or warnings, feel free to ask us via chat. 💬 |
Codecov Report
@@ Coverage Diff @@
## dev #27 +/- ##
============================================
- Coverage 24.40% 21.76% -2.64%
- Complexity 274 279 +5
============================================
Files 143 154 +11
Lines 3385 3850 +465
Branches 394 445 +51
============================================
+ Hits 826 838 +12
- Misses 2443 2896 +453
Partials 116 116
Continue to review full report at Codecov.
|
3775c2d to
30f4cb6
Compare
| public class EventLog {} | ||
| package org.fisco.bcos.sdk.utils; | ||
|
|
||
| public class Address { |
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.
utils包下面建议统一改为XXUtils或XXUtil后缀,便于和基本数据结构进行区分。
| } | ||
|
|
||
| private BigInteger lastBlockNumber = null; | ||
| private long logCount = 0; |
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.
这个变量类型是不是改成BigInteger会更一致点?
| private BigInteger lastBlockNumber = null; | ||
| private long logCount = 0; | ||
|
|
||
| public abstract void onReceiveLog(int status, List<EventLog> logs); |
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.
建议变量都放在method定义上方,统一下风格。
| } | ||
| } | ||
| } catch (JsonProcessingException e) { | ||
| e.printStackTrace(); |
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.
建议打下错误日志? e.printStackTrace();这种一般在实际开发中被禁止
| } | ||
|
|
||
| @Override | ||
| public void onDisconnect(ChannelHandlerContext ctx) {} |
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.
建议打下日志?
| } | ||
|
|
||
| @Override | ||
| public void onConnect(ChannelHandlerContext ctx) {} |
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.
建议打下debug日志?
10a595c to
f7ae454
Compare
| * @param filterID | ||
| */ | ||
| void unsubscribeEvent(String filterId); | ||
| void unsubscribeEvent(String filterID); |
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.
应该是filterId吧,和groupId一样保持命名风格
|
Kudos, SonarCloud Quality Gate passed!
|
1. add event subscribe module and implement subscribe function 2. rename utils 3. add decoder of EventLog
1. add event subscribe module and implement subscribe function 2. rename utils 3. add decoder of EventLog
1. add event subscribe module and implement subscribe function 2. rename utils 3. add decoder of EventLog
1. add event subscribe module and implement subscribe function 2. rename utils 3. add decoder of EventLog
No description provided.