File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
libsql-server/src/connection Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,10 @@ where
380
380
ctx : RequestContext ,
381
381
builder : B ,
382
382
) -> 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 ( ) ;
384
387
check_program_auth ( & ctx, & pgm, & config) . await ?;
385
388
let conn = self . inner . clone ( ) ;
386
389
CoreConnection :: run_async ( conn, pgm, builder) . await
Original file line number Diff line number Diff line change @@ -93,7 +93,10 @@ impl LibsqlConnection {
93
93
ctx : RequestContext ,
94
94
builder : B ,
95
95
) -> 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 ( ) ;
97
100
check_program_auth ( & ctx, & pgm, & config) . await ?;
98
101
let conn = self . inner . clone ( ) ;
99
102
CoreConnection :: run_async ( conn, pgm, builder) . await
You can’t perform that action at this time.
0 commit comments