mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 12:45:04 +01:00
handle ChannelClose
This commit is contained in:
parent
cb73214bc3
commit
f2195133fb
6 changed files with 38 additions and 7 deletions
|
|
@ -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