diff --git a/src/tui/app/machine/fetch.rs b/src/tui/app/machine/fetch.rs index b985c9b..6357b51 100644 --- a/src/tui/app/machine/fetch.rs +++ b/src/tui/app/machine/fetch.rs @@ -69,10 +69,14 @@ impl AppMachine { }; let fetch = AppFetch::new(fetch_rx); - AppMachine::app_fetch_next(inner, fetch, true) + AppMachine::app_fetch(inner, fetch, true) } - pub fn app_fetch_next(inner: AppInner, fetch: AppFetch, first: bool) -> App { + pub fn app_fetch_next(inner: AppInner, fetch: AppFetch) -> App { + Self::app_fetch(inner, fetch, false) + } + + pub fn app_fetch(inner: AppInner, fetch: AppFetch, first: bool) -> App { match fetch.fetch_rx.try_recv() { Ok(fetch_result) => match fetch_result { Ok(next_match) => { @@ -176,7 +180,7 @@ impl IAppEventFetch for AppMachine { type APP = App; fn fetch_result_ready(self) -> Self::APP { - Self::app_fetch_next(self.inner, self.state, false) + Self::app_fetch_next(self.inner, self.state) } } diff --git a/src/tui/app/machine/matches.rs b/src/tui/app/machine/matches.rs index cd80d99..e6a5e32 100644 --- a/src/tui/app/machine/matches.rs +++ b/src/tui/app/machine/matches.rs @@ -116,7 +116,7 @@ impl IAppInteractMatches for AppMachine { } fn select(self) -> Self::APP { - AppMachine::app_fetch_next(self.inner, self.state.fetch, false) + AppMachine::app_fetch_next(self.inner, self.state.fetch) } fn abort(self) -> Self::APP {