mirror of
https://github.com/actix/examples
synced 2025-06-26 09:17:41 +02:00
move a couple more things to workspace deps
This commit is contained in:
@ -5,13 +5,13 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
actix-web = { workspace = true, features = ["openssl"] }
|
||||
awc = "3"
|
||||
awc.workspace = true
|
||||
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
env_logger.workspace = true
|
||||
futures-util = { version = "0.3.17", default-features = false, features = ["std"] }
|
||||
futures-util.workspace = true
|
||||
log.workspace = true
|
||||
reqwest = { version = "0.11", features = ["stream"] }
|
||||
tokio = { version = "1.13.1", features = ["sync"] }
|
||||
tokio.workspace = true
|
||||
tokio-stream = { version = "0.1.3", features = ["sync"] }
|
||||
url = "2.2"
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user