Some renaming
This commit is contained in:
parent
abc0212b28
commit
07b3e66f25
@ -20,16 +20,16 @@ use crate::tui::{
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub type FetchReceiver = mpsc::Receiver<MbApiResult>;
|
pub type MbApiReceiver = mpsc::Receiver<MbApiResult>;
|
||||||
pub struct FetchState {
|
pub struct FetchState {
|
||||||
fetch_rx: FetchReceiver,
|
search_rx: MbApiReceiver,
|
||||||
lookup_rx: Option<FetchReceiver>,
|
lookup_rx: Option<MbApiReceiver>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FetchState {
|
impl FetchState {
|
||||||
pub fn new(fetch_rx: FetchReceiver) -> Self {
|
pub fn new(search_rx: MbApiReceiver) -> Self {
|
||||||
FetchState {
|
FetchState {
|
||||||
fetch_rx,
|
search_rx,
|
||||||
lookup_rx: None,
|
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