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

@@ -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()