File tree Expand file tree Collapse file tree
libsql-server/src/connection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -380,7 +380,10 @@ where
380380 ctx : RequestContext ,
381381 builder : B ,
382382 ) -> Result < B > {
383- let config = self . inner . lock ( ) . config ( ) ;
383+ let inner = self . inner . clone ( ) ;
384+ let config = tokio:: task:: spawn_blocking ( move || inner. lock ( ) . config ( ) )
385+ . await
386+ . unwrap ( ) ;
384387 check_program_auth ( & ctx, & pgm, & config) . await ?;
385388 let conn = self . inner . clone ( ) ;
386389 CoreConnection :: run_async ( conn, pgm, builder) . await
Original file line number Diff line number Diff line change @@ -93,7 +93,10 @@ impl LibsqlConnection {
9393 ctx : RequestContext ,
9494 builder : B ,
9595 ) -> Result < B > {
96- let config = self . inner . lock ( ) . config ( ) ;
96+ let inner = self . inner . clone ( ) ;
97+ let config = tokio:: task:: spawn_blocking ( move || inner. lock ( ) . config ( ) )
98+ . await
99+ . unwrap ( ) ;
97100 check_program_auth ( & ctx, & pgm, & config) . await ?;
98101 let conn = self . inner . clone ( ) ;
99102 CoreConnection :: run_async ( conn, pgm, builder) . await
You can’t perform that action at this time.
0 commit comments