feat: use new tokio stream
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -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"
|
||||
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user