handle ChannelClose

This commit is contained in:
nora 2022-02-20 21:50:50 +01:00
parent cb73214bc3
commit f2195133fb
6 changed files with 38 additions and 7 deletions

View file

@ -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"] }

View file

@ -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;
}