From 4dcf32c2228e50d457f0949765f6a71355e842eb Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 6 Oct 2024 15:43:06 +0200 Subject: [PATCH] Some renaming --- src/tui/app/machine/fetch_state.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tui/app/machine/fetch_state.rs b/src/tui/app/machine/fetch_state.rs index e5e1de2..746f8b0 100644 --- a/src/tui/app/machine/fetch_state.rs +++ b/src/tui/app/machine/fetch_state.rs @@ -20,16 +20,16 @@ use crate::tui::{ }, }; -pub type FetchReceiver = mpsc::Receiver; +pub type MbApiReceiver = mpsc::Receiver; pub struct FetchState { - fetch_rx: FetchReceiver, - lookup_rx: Option, + search_rx: MbApiReceiver, + lookup_rx: Option, } 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() } }