| 1210 | } |
| 1211 | |
| 1212 | static struct command_result *batch_one_failed(struct command *cmd, |
| 1213 | const char *method, |
| 1214 | const char *buf, |
| 1215 | const jsmntok_t *result, |
| 1216 | struct request_batch *batch) |
| 1217 | { |
| 1218 | /* If this frees stuff (e.g. fails), just return */ |
| 1219 | if (batch->errcb && batch->errcb(cmd, method, buf, result, batch->arg) == &complete) |
| 1220 | return &complete; |
| 1221 | return batch_one_complete(cmd, batch); |
| 1222 | } |
| 1223 | |
| 1224 | struct out_req *add_to_batch(struct command *cmd, |
| 1225 | struct request_batch *batch, |
nothing calls this directly
no test coverage detected