| 225 | } |
| 226 | |
| 227 | static struct command_result *listpeers_done(struct command *cmd, |
| 228 | const char *method, |
| 229 | const char *buf, |
| 230 | const jsmntok_t *result, |
| 231 | struct connect_info *ci) |
| 232 | { |
| 233 | const struct pubkey *path; |
| 234 | |
| 235 | path = path_to_node(tmpctx, cmd, |
| 236 | ci->gossmap, cmd->plugin, buf, result, |
| 237 | &ci->local_id, &ci->dst); |
| 238 | if (!path) |
| 239 | return connect_direct(cmd, ci); |
| 240 | |
| 241 | return ci->cb(cmd, path, ci->arg); |
| 242 | } |
| 243 | |
| 244 | struct command_result *establish_onion_path_(struct command *cmd, |
| 245 | struct gossmap *gossmap, |
nothing calls this directly
no test coverage detected