Runs finalcb immediately if batch is empty. */
| 1235 | |
| 1236 | /* Runs finalcb immediately if batch is empty. */ |
| 1237 | struct command_result *batch_done(struct command *cmd, |
| 1238 | struct request_batch *batch) |
| 1239 | { |
| 1240 | /* Same path as completion */ |
| 1241 | batch->num_remaining++; |
| 1242 | return batch_one_complete(cmd, batch); |
| 1243 | } |
| 1244 | |
| 1245 | static void json_add_deprecated(struct json_stream *js, |
| 1246 | const char *fieldname, |