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