diff options
| author | 彭宣正 <[email protected]> | 2020-11-23 15:25:09 +0800 |
|---|---|---|
| committer | 彭宣正 <[email protected]> | 2020-12-01 16:16:55 +0800 |
| commit | 082483f250099fd6fb93ba65af05a027e6e46f5e (patch) | |
| tree | 275145b720e04d56350492fc96f0a3e2e52aec65 | |
| parent | c3fc52b5b0b9601fbd6abbe1fc508184a3e0cbf6 (diff) | |
修改demo
| -rw-r--r-- | example/demo/hos_write_complete.cpp | 2 | ||||
| -rw-r--r-- | example/performance/HosClientPerformance.cpp | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/example/demo/hos_write_complete.cpp b/example/demo/hos_write_complete.cpp index e78ed694..8cba751a 100644 --- a/example/demo/hos_write_complete.cpp +++ b/example/demo/hos_write_complete.cpp @@ -78,7 +78,6 @@ int main(int argc, char *argv[]) file_to_buffer(object, buf, &buf_size); - hos_init_api(); debuginfo("hos_client_init start ...\n"); hos_client_handle handle = hos_client_create("http://192.168.40.223:9098/hos/", "default", "default", 400); //hos_client_handle handle = hos_client_create("http://192.168.32.10:9098/hos/", "default", "default", 4); @@ -157,7 +156,6 @@ int main(int argc, char *argv[]) } debuginfo("hos_client_close end ...\n"); - hos_shutdown_api(); free(buf); return 0; } diff --git a/example/performance/HosClientPerformance.cpp b/example/performance/HosClientPerformance.cpp index 3cd88ef8..e4d9f967 100644 --- a/example/performance/HosClientPerformance.cpp +++ b/example/performance/HosClientPerformance.cpp @@ -529,7 +529,6 @@ int main(int argc, char *argv[]) perror(log_name); return -1; } - hos_init_api(); //创建client hos_client_handle handle = hos_client_create(conf.endpoint, "default", "default", conf.pool_size); if (handle == NULL) @@ -601,7 +600,6 @@ int main(int argc, char *argv[]) //time /= test_times; //printf("hos upload finished spent %llu ns\n", time); } - hos_shutdown_api(); fclose(log); return 0; |
