Skip to content

Conversation

@MaggieNgWu
Copy link
Contributor

No description provided.

@ghost
Copy link

ghost commented Jul 23, 2020

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 sider.yml, turn off unused tools, and so on.

If you are struggling with these errors or warnings, feel free to ask us via chat. 💬

@codecov-commenter
Copy link

codecov-commenter commented Jul 23, 2020

Codecov Report

Merging #27 into dev will decrease coverage by 2.63%.
The diff coverage is 1.38%.

Impacted file tree graph

@@             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              
Impacted Files Coverage Δ Complexity Δ
...ava/org/fisco/bcos/sdk/eventsub/EventCallback.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...va/org/fisco/bcos/sdk/eventsub/EventLogParams.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...va/org/fisco/bcos/sdk/eventsub/EventSubscribe.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...org/fisco/bcos/sdk/eventsub/EventSubscribeImp.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...bcos/sdk/eventsub/exception/EventSubException.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...fisco/bcos/sdk/eventsub/filter/EventLogFilter.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...bcos/sdk/eventsub/filter/EventLogFilterStatus.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...sco/bcos/sdk/eventsub/filter/EventLogResponse.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
.../bcos/sdk/eventsub/filter/EventPushMsgHandler.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...os/sdk/eventsub/filter/EventSubNodeRespStatus.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fdfd4ad...a2daf8e. Read the comment docs.

public class EventLog {}
package org.fisco.bcos.sdk.utils;

public class Address {
Copy link
Collaborator

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;
Copy link
Collaborator

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);
Copy link
Collaborator

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();
Copy link
Collaborator

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) {}
Copy link
Collaborator

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) {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议打下debug日志?

@MaggieNgWu MaggieNgWu force-pushed the dev branch 3 times, most recently from 10a595c to f7ae454 Compare July 24, 2020 03:31
@MaggieNgWu MaggieNgWu requested a review from dalaocu July 24, 2020 04:28
* @param filterID
*/
void unsubscribeEvent(String filterId);
void unsubscribeEvent(String filterID);
Copy link
Contributor

Choose a reason for hiding this comment

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

应该是filterId吧,和groupId一样保持命名风格

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@MaggieNgWu MaggieNgWu merged commit 3a34e3b into FISCO-BCOS:dev Jul 24, 2020
cyjseagull pushed a commit that referenced this pull request Aug 11, 2020
1. add event subscribe module and implement subscribe function

2. rename utils

3. add decoder of EventLog
MaggieNgWu added a commit that referenced this pull request Sep 27, 2020
1. add event subscribe module and implement subscribe function

2. rename utils

3. add decoder of EventLog
cyjseagull pushed a commit that referenced this pull request Oct 12, 2020
1. add event subscribe module and implement subscribe function

2. rename utils

3. add decoder of EventLog
cyjseagull pushed a commit that referenced this pull request Oct 12, 2020
1. add event subscribe module and implement subscribe function

2. rename utils

3. add decoder of EventLog
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.

5 participants