feat: use new tokio stream
Some checks reported errors
continuous-integration/drone/push Build encountered an error

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-26 15:45:40 +02:00
parent b12653b9e9
commit 9601cfa980
3 changed files with 12 additions and 39 deletions

View File

@@ -22,9 +22,14 @@ serde_json = "1.0.113"
nats = "0.24.1"
walkdir = "2.4.0"
tar = "0.4.40"
tokio-stream = { version = "0.1.14", features = ["full"] }
tokio-stream = { version = "0.1.15", features = ["full"] }
rand = "0.8.5"
sqlx = { version = "0.7.3", features = ["postgres", "runtime-tokio", "uuid", "chrono"] }
sqlx = { version = "0.7.3", features = [
"postgres",
"runtime-tokio",
"uuid",
"chrono",
] }
chrono = "0.4.34"
git2 = "0.18.3"

View File

@@ -25,11 +25,12 @@ impl FluxReleaserUploader {
})
.collect::<Vec<_>>();
let iter = tokio_stream::iter(chunks);
let resp = self
.flux_client
.lock()
.await
.upload_artifact(tonic::Request::new(tokio_stream::iter(chunks)))
.upload_artifact(tonic::Request::new(iter))
.await?;
resp.into_inner().upload_id.try_into()