修改demo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user