Provide a keyboard shortcut to pull all release groups of an artist #233
@ -20,16 +20,16 @@ use crate::tui::{
|
||||
},
|
||||
};
|
||||
|
||||
pub type FetchReceiver = mpsc::Receiver<MbApiResult>;
|
||||
pub type MbApiReceiver = mpsc::Receiver<MbApiResult>;
|
||||
pub struct FetchState {
|
||||
fetch_rx: FetchReceiver,
|
||||
lookup_rx: Option<FetchReceiver>,
|
||||
search_rx: MbApiReceiver,
|
||||
lookup_rx: Option<MbApiReceiver>,
|
||||
}
|
||||
|
||||
impl FetchState {
|
||||
pub fn new(fetch_rx: FetchReceiver) -> Self {
|
||||
pub fn new(search_rx: MbApiReceiver) -> Self {
|
||||
FetchState {
|
||||
fetch_rx,
|
||||
search_rx,
|
||||
lookup_rx: None,
|
||||
}
|
||||
}
|
||||
@ -43,7 +43,7 @@ impl FetchState {
|
||||
}
|
||||
}
|
||||
}
|
||||
self.fetch_rx.try_recv()
|
||||
self.search_rx.try_recv()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user