You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by pr...@apache.org on 2026/06/02 02:28:17 UTC

(sedona-spatialbench) branch pranav/feature/raster-benchmark updated: fix: use .await instead of block_on for STAC S3 upload

This is an automated email from the ASF dual-hosted git repository.

prantogg pushed a commit to branch pranav/feature/raster-benchmark
in repository https://gitbox.apache.org/repos/asf/sedona-spatialbench.git


The following commit(s) were added to refs/heads/pranav/feature/raster-benchmark by this push:
     new 4f4b9f9  fix: use .await instead of block_on for STAC S3 upload
4f4b9f9 is described below

commit 4f4b9f90b25740a18752021903efadd3c4440648
Author: Pranav Toggi <pr...@gmail.com>
AuthorDate: Mon Jun 1 19:28:11 2026 -0700

    fix: use .await instead of block_on for STAC S3 upload
    
    block_on panics inside an async runtime. The STAC upload is already
    in an async context, so just .await the put() call directly.
---
 spatialbench-cli/src/main.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/spatialbench-cli/src/main.rs b/spatialbench-cli/src/main.rs
index aa7374c..9e2f59e 100644
--- a/spatialbench-cli/src/main.rs
+++ b/spatialbench-cli/src/main.rs
@@ -468,8 +468,9 @@ impl Cli {
                         topo.dir_name()
                     );
                     let path = object_store::path::Path::from(key.as_str());
-                    let rt = tokio::runtime::Handle::current();
-                    rt.block_on(client.put(&path, buf.into()))
+                    client
+                        .put(&path, buf.into())
+                        .await
                         .map_err(|e| io::Error::other(format!("S3 upload failed: {e}")))?;
                     info!("wrote STAC catalog: s3://{}/{}", bucket, key);
                 }