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

Function batch_one_failed

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

Source from the content-addressed store, hash-verified

1210}
1211
1212static 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
1224struct out_req *add_to_batch(struct command *cmd,
1225 struct request_batch *batch,

Callers

nothing calls this directly

Calls 1

batch_one_completeFunction · 0.85

Tested by

no test coverage detected