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

Function json_autoclean_once

plugins/autoclean.c:777–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777static struct command_result *json_autoclean_once(struct command *cmd,
778 const char *buffer,
779 const jsmntok_t *params)
780{
781 struct subsystem_and_variant *sv;
782 u64 *age;
783 struct clean_info *cinfo;
784
785 if (!param(cmd, buffer, params,
786 p_req("subsystem", param_subsystem, &sv),
787 p_req("age", param_u64_nonzero, &age),
788 NULL))
789 return command_param_failed();
790
791 cinfo = new_clean_info(cmd, cmd);
792 get_per_variant(cinfo, sv)->age = *age;
793
794 return start_clean(cinfo);
795}
796
797static void memleak_mark_timer_cinfo(struct plugin *plugin,
798 struct htable *memtable)

Callers

nothing calls this directly

Calls 5

new_clean_infoFunction · 0.85
get_per_variantFunction · 0.85
start_cleanFunction · 0.85
command_param_failedFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected