修改demo

This commit is contained in:
彭宣正
2020-11-23 15:25:09 +08:00
parent 27937cde15
commit 34d03a35f0
2 changed files with 0 additions and 4 deletions

View File

@@ -78,7 +78,6 @@ int main(int argc, char *argv[])
file_to_buffer(object, buf, &buf_size); file_to_buffer(object, buf, &buf_size);
hos_init_api();
debuginfo("hos_client_init start ...\n"); 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.40.223:9098/hos/", "default", "default", 400);
//hos_client_handle handle = hos_client_create("http://192.168.32.10:9098/hos/", "default", "default", 4); //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"); debuginfo("hos_client_close end ...\n");
hos_shutdown_api();
free(buf); free(buf);
return 0; return 0;
} }

View File

@@ -529,7 +529,6 @@ int main(int argc, char *argv[])
perror(log_name); perror(log_name);
return -1; return -1;
} }
hos_init_api();
//创建client //创建client
hos_client_handle handle = hos_client_create(conf.endpoint, "default", "default", conf.pool_size); hos_client_handle handle = hos_client_create(conf.endpoint, "default", "default", conf.pool_size);
if (handle == NULL) if (handle == NULL)
@@ -601,7 +600,6 @@ int main(int argc, char *argv[])
//time /= test_times; //time /= test_times;
//printf("hos upload finished spent %llu ns\n", time); //printf("hos upload finished spent %llu ns\n", time);
} }
hos_shutdown_api();
fclose(log); fclose(log);
return 0; return 0;