Commit 9065f31
committed
Only prune on
Previously, we'd constantly check whether or not we can prune stale
webhooks. While not wrong, it lead to a bunch of ~unnecessary
operations, especially given that we only prune once a day currently.
Here we move pruning to `peer_connected`/`peer_disconnected`, which is
similar to what we do for LSPS2, and should still be more than enough.peer_{dis}connected
1 parent ce89e6b commit 9065f31
File tree
2 files changed
+13
-9
lines changed- lightning-liquidity
- src/lsps5
- tests
2 files changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
263 | 262 | | |
264 | 263 | | |
265 | 264 | | |
266 | | - | |
267 | | - | |
268 | | - | |
| 265 | + | |
269 | 266 | | |
270 | 267 | | |
271 | 268 | | |
| |||
285 | 282 | | |
286 | 283 | | |
287 | 284 | | |
288 | | - | |
289 | 285 | | |
290 | 286 | | |
291 | 287 | | |
| |||
410 | 406 | | |
411 | 407 | | |
412 | 408 | | |
413 | | - | |
414 | | - | |
415 | 409 | | |
416 | 410 | | |
417 | 411 | | |
| |||
506 | 500 | | |
507 | 501 | | |
508 | 502 | | |
| 503 | + | |
509 | 504 | | |
510 | 505 | | |
511 | 506 | | |
512 | 507 | | |
513 | 508 | | |
514 | 509 | | |
515 | 510 | | |
| 511 | + | |
516 | 512 | | |
517 | 513 | | |
518 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
864 | | - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
865 | 873 | | |
866 | 874 | | |
867 | 875 | | |
| |||
1068 | 1076 | | |
1069 | 1077 | | |
1070 | 1078 | | |
1071 | | - | |
| 1079 | + | |
1072 | 1080 | | |
1073 | 1081 | | |
1074 | 1082 | | |
| |||
0 commit comments