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