autoclean: don't slam lightningd with 10,000 requests at once.
On a large node, especially with postgres, this causes every other command to take 30 seconds plus. The first, obvious, step is to reduce how many commands we will do at once. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Vincenzo Palazzo
parent
b34adc704b
commit
49380239e9
@@ -13,7 +13,7 @@ static struct clean_info *timer_cinfo;
|
||||
static struct plugin *plugin;
|
||||
/* This is NULL if it's running now. */
|
||||
static struct plugin_timer *cleantimer;
|
||||
static u64 max_entries_per_call = 10000;
|
||||
static u64 max_entries_per_call = 100;
|
||||
|
||||
enum subsystem_type {
|
||||
FORWARDS,
|
||||
|
||||
Reference in New Issue
Block a user