| 324 | } |
| 325 | |
| 326 | static 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 | |
| 341 | static struct command_result *del_done(struct command *cmd, |
| 342 | const char *method, |
no test coverage detected