Finds first command which matches. */
| 47 | |
| 48 | /* Finds first command which matches. */ |
| 49 | static struct connect *find_connect(struct lightningd *ld, |
| 50 | const struct node_id *id) |
| 51 | { |
| 52 | struct connect *i; |
| 53 | |
| 54 | list_for_each(&ld->connects, i, list) { |
| 55 | if (node_id_eq(&i->id, id)) |
| 56 | return i; |
| 57 | } |
| 58 | return NULL; |
| 59 | } |
| 60 | |
| 61 | static struct command_result *connect_cmd_succeed(struct command *cmd, |
| 62 | const struct peer *peer, |
no test coverage detected