Non-fatal: watchman may not be ready yet (e.g. lightningd still booting). * Reschedule the poll anyway so we keep retrying without busy-looping. */
| 144 | /* Non-fatal: watchman may not be ready yet (e.g. lightningd still booting). |
| 145 | * Reschedule the poll anyway so we keep retrying without busy-looping. */ |
| 146 | static struct command_result *block_processed_err(struct command *cmd, |
| 147 | const char *method UNUSED, |
| 148 | const char *buf, |
| 149 | const jsmntok_t *result, |
| 150 | void *unused UNUSED) |
| 151 | { |
| 152 | struct bwatch *bwatch = bwatch_of(cmd->plugin); |
| 153 | |
| 154 | plugin_log(cmd->plugin, LOG_DBG, |
| 155 | "block_processed RPC failed (watchman not ready?): %.*s", |
| 156 | json_tok_full_len(result), json_tok_full(buf, result)); |
| 157 | |
| 158 | bwatch->poll_timer = global_timer(cmd->plugin, time_from_sec(0), |
| 159 | bwatch_poll_chain, NULL); |
| 160 | return timer_complete(cmd); |
| 161 | } |
| 162 | |
| 163 | struct command_result *bwatch_send_block_processed(struct command *cmd) |
| 164 | { |
nothing calls this directly
no test coverage detected