Fixxing calling site for http::fetch_channels
This commit is contained in:
parent
a58f8437c0
commit
de46c2ff38
@ -10,7 +10,6 @@ use std::path::PathBuf;
|
||||
|
||||
use clap::{Arg, App};
|
||||
use cursive::Cursive;
|
||||
use cursive::views::{Dialog, TextView};
|
||||
use cursive::menu::MenuTree;
|
||||
use cursive::event::Key;
|
||||
|
||||
@ -84,7 +83,8 @@ async fn main() {
|
||||
// open up search able list of channels
|
||||
// choose from that list of channels which one you want to see
|
||||
|
||||
if let Some(channels) = http::fetch_channels(&server.ip).await {
|
||||
// NOTE: not passing the domain as the IP is resolved on server join
|
||||
if let Some(channels) = http::fetch_channels(&server.ip, server.port).await {
|
||||
// add a bunch of actionable leafs to our sub tree
|
||||
for channel in channels {
|
||||
app.menubar().find_subtree(name.as_ref()).unwrap().add_leaf(channel.name.clone(), move |s| {
|
||||
@ -96,4 +96,4 @@ async fn main() {
|
||||
}
|
||||
|
||||
app.run();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user