| 1200 | } |
| 1201 | |
| 1202 | static struct command_result *batch_one_failed(struct command *cmd, |
| 1203 | const char *method, |
| 1204 | const char *buf, |
| 1205 | const jsmntok_t *result, |
| 1206 | struct request_batch *batch) |
| 1207 | { |
| 1208 | /* If this frees stuff (e.g. fails), just return */ |
| 1209 | if (batch->errcb && batch->errcb(cmd, method, buf, result, batch->arg) == &complete) |
| 1210 | return &complete; |
| 1211 | return batch_one_complete(cmd, batch); |
| 1212 | } |
| 1213 | |
| 1214 | struct out_req *add_to_batch(struct command *cmd, |
| 1215 | struct request_batch *batch, |
nothing calls this directly
no test coverage detected