File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010use std:: sync:: LazyLock ;
1111
12+ use vortex:: VortexSessionDefault ;
13+ use vortex:: io:: runtime:: wasm:: WasmRuntime ;
14+ use vortex:: io:: session:: RuntimeSessionExt ;
1215use vortex:: session:: VortexSession ;
1316
1417mod wasm;
1518
16- static SESSION : LazyLock < VortexSession > =
17- LazyLock :: new ( || VortexSession :: default ( ) . allow_unknown ( ) ) ;
19+ static SESSION : LazyLock < VortexSession > = LazyLock :: new ( || {
20+ VortexSession :: default ( )
21+ . with_handle ( WasmRuntime :: handle ( ) )
22+ . allow_unknown ( )
23+ } ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ use futures::FutureExt;
1818use futures:: TryStreamExt ;
1919use futures:: future:: BoxFuture ;
2020use serde:: Serialize ;
21- use vortex:: VortexSessionDefault ;
2221use vortex:: array:: ArrayRef ;
2322use vortex:: array:: LEGACY_SESSION ;
2423use vortex:: array:: VortexSessionExecute ;
@@ -35,8 +34,6 @@ use vortex::file::VERSION;
3534use vortex:: file:: VortexFile ;
3635use vortex:: io:: CoalesceConfig ;
3736use vortex:: io:: VortexReadAt ;
38- use vortex:: io:: runtime:: wasm:: WasmRuntime ;
39- use vortex:: io:: session:: RuntimeSessionExt ;
4037use vortex:: layout:: LayoutChildType ;
4138use vortex:: layout:: LayoutRef ;
4239use vortex:: layout:: layouts:: flat:: Flat ;
@@ -46,6 +43,8 @@ use vortex::session::registry::ReadContext;
4643use wasm_bindgen:: prelude:: * ;
4744use wasm_bindgen_futures:: JsFuture ;
4845
46+ use crate :: SESSION ;
47+
4948/// Initialize the WASM module (sets up panic hook for better error messages).
5049#[ wasm_bindgen( start) ]
5150pub fn init ( ) {
You can’t perform that action at this time.
0 commit comments