1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

move a couple more things to workspace deps

This commit is contained in:
Rob Ede
2023-01-02 20:33:43 +00:00
parent 7ca1024742
commit 91ffa11e19
63 changed files with 145 additions and 141 deletions

View File

@ -7,6 +7,7 @@ use actix_web::{
use awc::Client;
use clap::Parser;
use futures_util::StreamExt as _;
use tokio::sync::mpsc;
use tokio_stream::wrappers::UnboundedReceiverStream;
use url::Url;
@ -71,7 +72,7 @@ async fn forward_reqwest(
new_url.set_path(path);
new_url.set_query(req.uri().query());
let (tx, rx) = tokio::sync::mpsc::unbounded_channel();
let (tx, rx) = mpsc::unbounded_channel();
actix_web::rt::spawn(async move {
while let Some(chunk) = payload.next().await {