Skip to content

Commit 2b9ec8a

Browse files
committed
JNI fix?
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 594a636 commit 2b9ec8a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

vortex-jni/src/object_store.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ pub(crate) fn object_store_fs(
3333
handle: Handle,
3434
) -> VortexResult<FileSystemRef> {
3535
let object_store = make_object_store(url, properties)?;
36-
Ok(Arc::new(Compat::new(ObjectStoreFileSystem::new(
37-
object_store,
38-
handle,
39-
))))
36+
let object_store = Arc::new(Compat::new(object_store)) as Arc<dyn ObjectStore>;
37+
38+
Ok(Arc::new(ObjectStoreFileSystem::new(object_store, handle)))
4039
}
4140

4241
#[expect(clippy::cognitive_complexity)]

0 commit comments

Comments
 (0)