We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc178de commit 9595315Copy full SHA for 9595315
1 file changed
libsql-server/src/connection/libsql.rs
@@ -413,14 +413,15 @@ where
413
cancelled
414
};
415
416
+ PROGRAM_EXEC_COUNT.increment(1);
417
+
418
+ check_program_auth(&ctx, &pgm, &self.inner.lock().config_store.get())?;
419
420
+ // create the bomb right before spawning the blocking task.
421
let mut bomb = Bomb {
422
canceled,
423
defused: false,
424
-
- PROGRAM_EXEC_COUNT.increment(1);
- check_program_auth(&ctx, &pgm, &self.inner.lock().config_store.get())?;
425
let conn = self.inner.clone();
426
let ret = BLOCKING_RT
427
.spawn_blocking(move || Connection::run(conn, pgm, builder))
0 commit comments