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

Function batch_one_success

plugins/libplugin.c:1190–1200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1188}
1189
1190static struct command_result *batch_one_success(struct command *cmd,
1191 const char *method,
1192 const char *buf,
1193 const jsmntok_t *result,
1194 struct request_batch *batch)
1195{
1196 /* If this frees stuff (e.g. fails), just return */
1197 if (batch->cb && batch->cb(cmd, method, buf, result, batch->arg) == &complete)
1198 return &complete;
1199 return batch_one_complete(cmd, batch);
1200}
1201
1202static struct command_result *batch_one_failed(struct command *cmd,
1203 const char *method,

Callers

nothing calls this directly

Calls 1

batch_one_completeFunction · 0.85

Tested by

no test coverage detected