mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 20:55:03 +01:00
handle ChannelClose
This commit is contained in:
parent
cb73214bc3
commit
f2195133fb
6 changed files with 38 additions and 7 deletions
|
|
@ -7,4 +7,5 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
amqp_core = { path = "../amqp_core" }
|
||||
tracing = "0.1.31"
|
||||
tracing = "0.1.31"
|
||||
tokio = { version = "1.17.0", features = ["full"] }
|
||||
|
|
@ -1,4 +1,10 @@
|
|||
use amqp_core::methods::Method;
|
||||
use amqp_core::ChannelHandle;
|
||||
use std::time::Duration;
|
||||
use tokio::time;
|
||||
use tracing::debug;
|
||||
|
||||
pub async fn handle_method(_channel_handle: ChannelHandle, _method: Method) {}
|
||||
pub async fn handle_method(_channel_handle: ChannelHandle, _method: Method) {
|
||||
debug!("handling method or something in that cool new future");
|
||||
time::sleep(Duration::from_secs(10)).await;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue