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

Function clean_finished_one

plugins/autoclean.c:326–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326static struct command_result *clean_finished_one(struct clean_info *cinfo)
327{
328 assert(cinfo->cleanup_reqs_remaining != 0);
329 if (--cinfo->cleanup_reqs_remaining > 0)
330 return command_still_pending(cinfo->cmd);
331
332 /* See if there are more entries we need to list, but don't
333 * use more than half the node's RPC capacity: sleep as long
334 * as the last cleans took. */
335 notleak(command_timer(cinfo->cmd,
336 timemono_between(time_mono(), cinfo->reqs_start),
337 do_clean_after_sleep, cinfo));
338 return command_still_pending(cinfo->cmd);
339}
340
341static struct command_result *del_done(struct command *cmd,
342 const char *method,

Callers 3

del_doneFunction · 0.85
del_failedFunction · 0.85
list_doneFunction · 0.85

Calls 3

timemono_betweenFunction · 0.85
time_monoFunction · 0.85
command_still_pendingFunction · 0.70

Tested by

no test coverage detected