mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-15 04:05:03 +01:00
inject dependency on haesli_messaging into haesli_transport to simplify dependency graph
This commit is contained in:
parent
92e3ac486b
commit
b4ecb6b5d4
8 changed files with 47 additions and 16 deletions
|
|
@ -32,7 +32,12 @@ async fn main() -> Result<()> {
|
|||
tokio::spawn(async move { haesli_dashboard::start_dashboard(global_data).await });
|
||||
}
|
||||
|
||||
let res = haesli_transport::do_thing_i_guess(global_data, terminate()).await;
|
||||
let handlers = haesli_transport::Handlers {
|
||||
handle_method: haesli_messaging::methods::handle_method,
|
||||
handle_basic_publish: haesli_messaging::methods::publish,
|
||||
};
|
||||
|
||||
let res = haesli_transport::connection_loop(global_data, terminate(), handlers).await;
|
||||
|
||||
info!("Bye!");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue