Every 10 seconds, give progress indication */
| 89 | |
| 90 | /* Every 10 seconds, give progress indication */ |
| 91 | static bool give_progress(struct timemono *prev) |
| 92 | { |
| 93 | struct timemono now = time_mono(); |
| 94 | if (time_to_sec(timemono_between(now, *prev)) >= 10) { |
| 95 | *prev = now; |
| 96 | return true; |
| 97 | } |
| 98 | return false; |
| 99 | } |
| 100 | |
| 101 | static struct chain_event *stmt2chain_event(const tal_t *ctx, struct db_stmt *stmt) |
| 102 | { |
no test coverage detected