MCPcopy Create free account
hub / github.com/ElementsProject/lightning / batch_one_failed

Function batch_one_failed

plugins/libplugin.c:1202–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202static 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
1214struct out_req *add_to_batch(struct command *cmd,
1215 struct request_batch *batch,

Callers

nothing calls this directly

Calls 1

batch_one_completeFunction · 0.85

Tested by

no test coverage detected