add more helper functions more example code

This commit is contained in:
Rongsong Shen 2026-01-21 16:34:04 +08:00
parent 70970434ca
commit 00d161aa11
6 changed files with 403 additions and 55 deletions

View file

@ -77,8 +77,7 @@ static int xce_apiserver_push_jobs(cluster_t* c, endpoint_t* ep)
&(jobs.jobs));
jobs.count = jobs.n_total;
rc = xce_push_data_req(c->sched.ep, c->myhost, &data, check_controller, c,
100);
rc = xce_push_data_req(ep, c->myhost, &data, check_controller, c, 100);
deref_objs(jobs.n_total, (void**)jobs.jobs);
FREEUP(jobs.jobs);