heap alloc WireGuardTunnel::consume_task() future

This commit is contained in:
Sam Hug 2022-08-11 15:32:24 -07:00
parent aef90a5c0c
commit cea343c2c9

View file

@ -53,7 +53,7 @@ pub async fn start_tunnels(config: Config, bus: Bus) -> anyhow::Result<()> {
{
// Start consumption task for WireGuard
let wg = wg.clone();
tokio::spawn(async move { wg.consume_task().await });
tokio::spawn(Box::pin(async move { wg.consume_task().await }));
}
{