Skip to content

Commit

Permalink
set default value of some WsConfig fields to 0 (#222)
Browse files Browse the repository at this point in the history
Co-authored-by: ken <weiqiangchi@digitalgd.com.cn>
Co-authored-by: XingQiang Bai <bxq2011hust@qq.com>
  • Loading branch information
3 people authored Mar 12, 2024
1 parent 10e9e62 commit eb8cfc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bcos-c-sdk/bcos_sdk_c_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ struct bcos_sdk_c_config* bcos_sdk_c_config_create_empty()
{
struct bcos_sdk_c_config* config =
(struct bcos_sdk_c_config*)malloc(sizeof(struct bcos_sdk_c_config));
config->thread_pool_size = -1;
config->message_timeout_ms = -1;
config->heartbeat_period_ms = -1;
config->reconnect_period_ms = -1;
config->thread_pool_size = 0;
config->message_timeout_ms = 0;
config->heartbeat_period_ms = 0;
config->reconnect_period_ms = 0;
config->disable_ssl = 0;
config->send_rpc_request_to_highest_block_node = 1;
config->cert_config = NULL;
Expand Down

0 comments on commit eb8cfc6

Please sign in to comment.