Skip to content

Commit

Permalink
Made Backend constructor not async, as uneeded.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmackdev committed Aug 5, 2023
1 parent ee2c334 commit 0673650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pubsubman_backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct Backend {
}

impl Backend {
pub async fn new(back_tx: Sender<BackendMessage>, front_rx: Receiver<FrontendMessage>) -> Self {
pub fn new(back_tx: Sender<BackendMessage>, front_rx: Receiver<FrontendMessage>) -> Self {
Self { back_tx, front_rx }
}

Expand Down
2 changes: 1 addition & 1 deletion pubsubman_gui/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl App {
let (back_tx, back_rx) = tokio::sync::mpsc::channel(10);

tokio::spawn(async move {
Backend::new(back_tx, front_rx).await.init();
Backend::new(back_tx, front_rx).init();
});

refresh_topics(&front_tx);
Expand Down

0 comments on commit 0673650

Please sign in to comment.