introduce T

This commit is contained in:
GroovieGermanikus 2024-01-19 11:46:06 +01:00
parent afefb1847b
commit 46f56872e5
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 3 additions and 3 deletions

View File

@ -5,9 +5,9 @@ use tokio::sync::mpsc::error::SendTimeoutError;
use tokio::time::{sleep, timeout};
pub fn spawn_plugger_mpcs_to_broadcast(
mut upstream: tokio::sync::mpsc::Receiver<u64>,
downstream: tokio::sync::broadcast::Sender<u64>,
pub fn spawn_plugger_mpcs_to_broadcast<T: Send + 'static>(
mut upstream: tokio::sync::mpsc::Receiver<T>,
downstream: tokio::sync::broadcast::Sender<T>,
) {
// abort forwarder by closing the sender
let _donothing = tokio::spawn(async move {