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

Function batch_one_complete

plugins/libplugin.c:1183–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181}
1182
1183static struct command_result *batch_one_complete(struct command *cmd,
1184 struct request_batch *batch)
1185{
1186 void *arg;
1187 struct command_result *(*finalcb)(struct command *, void *);
1188
1189 assert(batch->num_remaining);
1190
1191 if (--batch->num_remaining != 0)
1192 return command_still_pending(cmd);
1193
1194 arg = batch->arg;
1195 finalcb = batch->finalcb;
1196 tal_free(batch);
1197 return finalcb(cmd, arg);
1198}
1199
1200static struct command_result *batch_one_success(struct command *cmd,
1201 const char *method,

Callers 3

batch_one_successFunction · 0.85
batch_one_failedFunction · 0.85
batch_doneFunction · 0.85

Calls 2

tal_freeFunction · 0.85
command_still_pendingFunction · 0.70

Tested by

no test coverage detected