| 19 | }; |
| 20 | |
| 21 | static struct command_result *connect_ok(struct command *cmd, |
| 22 | const char *method, |
| 23 | const char *buf, |
| 24 | const jsmntok_t *result, |
| 25 | struct connect_info *ci) |
| 26 | { |
| 27 | struct pubkey *path = tal_arr(tmpctx, struct pubkey, 2); |
| 28 | |
| 29 | /* Create direct mini-path */ |
| 30 | path[0] = ci->local_id; |
| 31 | path[1] = ci->dst; |
| 32 | |
| 33 | return ci->cb(cmd, path, ci->arg); |
| 34 | } |
| 35 | |
| 36 | static struct command_result *command_failed(struct command *cmd, |
| 37 | const char *method, |
nothing calls this directly
no outgoing calls
no test coverage detected