mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
queue worker task
This commit is contained in:
parent
f860714b2b
commit
800ccae604
8 changed files with 111 additions and 36 deletions
|
|
@ -13,7 +13,7 @@ mod tests;
|
|||
use crate::connection::TransportConnection;
|
||||
use amqp_core::GlobalData;
|
||||
use tokio::net;
|
||||
use tracing::{info, info_span, Instrument};
|
||||
use tracing::{info, trace_span, Instrument};
|
||||
|
||||
pub async fn do_thing_i_guess(global_data: GlobalData) -> anyhow::Result<()> {
|
||||
info!("Binding TCP listener...");
|
||||
|
|
@ -26,7 +26,7 @@ pub async fn do_thing_i_guess(global_data: GlobalData) -> anyhow::Result<()> {
|
|||
let id = rand::random();
|
||||
|
||||
info!(local_addr = ?stream.local_addr(), %id, "Accepted new connection");
|
||||
let span = info_span!("client-connection", %id);
|
||||
let span = trace_span!("client-connection", %id);
|
||||
|
||||
let (method_send, method_recv) = tokio::sync::mpsc::channel(10);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue