diff options
| author | pengxuanzheng <[email protected]> | 2021-09-27 18:49:27 +0800 |
|---|---|---|
| committer | pengxuanzheng <[email protected]> | 2021-10-11 11:00:56 +0800 |
| commit | 8c49f4d2c244a6beda066f0956ac2fe048c98812 (patch) | |
| tree | 150599233a0150809f12e2ede92dbb42e5c77721 /example/demo | |
| parent | 7b6a1281cf44b0b205ec286bed5c4d0b79fc8527 (diff) | |
🐞 fix(TSG-7599): hos client 初始化失败,定期尝试重连hos服务
Diffstat (limited to 'example/demo')
| -rw-r--r-- | example/demo/hos_write_demo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/demo/hos_write_demo.cpp b/example/demo/hos_write_demo.cpp index 6cdc1aff..95402a17 100644 --- a/example/demo/hos_write_demo.cpp +++ b/example/demo/hos_write_demo.cpp @@ -96,14 +96,14 @@ int main(int argc, char *argv[]) printf("hos_init_instance start ...\n"); hos_instance = hos_get_instance(); - if (hos_instance->result == false) + if (hos_instance == NULL) { hos_instance = hos_init_instance(conf_file, module_name, 1, bucket); } - if (hos_instance->result == false) + if (hos_instance == NULL) { printf("error:hos_init_instance\n"); - printf("error:%s", hos_instance->error_message); + printf("error:[%d]%s", hos_get_init_instance_errorcode, hos_get_init_instance_errormsg); return -1; } printf("hos_init_instance success ... \n"); |
