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

set default value of some WsConfig fields to 0 #222

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

Keyon11
Copy link
Contributor

@Keyon11 Keyon11 commented Mar 11, 2024

fix the cpu cost bug by comparing bcos_sdk_create() and bcos_sdk_create_by_config_file(). the solution is just make bcos_sdk_c_config_create_empty() return zero value instread of -1 which will translate into max uint32_t in WsConfig. It wil trigger boost::asio::deadline_timer some bug? I just solve the bug , but not know why actually. If you could tell me the reason, I would greatly appreciate it.

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 27.97%. Comparing base (10e9e62) to head (15b083c).

Files Patch % Lines
bcos-c-sdk/bcos_sdk_c_common.cpp 0.00% 4 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           release-3.7.0     #222   +/-   ##
==============================================
  Coverage          27.97%   27.97%           
==============================================
  Files                  8        8           
  Lines               2177     2177           
  Branches            1348     1348           
==============================================
  Hits                 609      609           
  Misses              1044     1044           
  Partials             524      524           
Flag Coverage Δ
unittests 27.97% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kyonRay kyonRay changed the base branch from feature-3.7.0 to release-3.7.0 March 12, 2024 03:29
@Keyon11 Keyon11 changed the base branch from release-3.7.0 to feature-3.7.0 March 12, 2024 03:32
@bxq2011hust bxq2011hust changed the base branch from feature-3.7.0 to release-3.7.0 March 12, 2024 04:35
@bxq2011hust bxq2011hust changed the title fix bug #221 set default value of WsConfig to 0 Mar 12, 2024
@bxq2011hust bxq2011hust changed the title set default value of WsConfig to 0 set default value of some WsConfig fields to 0 Mar 12, 2024
@bxq2011hust bxq2011hust merged commit eb8cfc6 into FISCO-BCOS:release-3.7.0 Mar 12, 2024
5 of 6 checks 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.

2 participants