@@ -47,10 +47,10 @@ impl CoreCryptoFfi {
4747 /// Ok(())
4848 /// }))?;
4949 /// ```
50- pub async fn transaction ( & self , command : Command ) -> CoreCryptoResult < ( ) > {
51- log:: info!( scope = "CoreCryptoFfi::transaction " , stage = 1 ; "awaiting transaction semaphore" ) ;
50+ pub async fn transaction_ffi ( & self , command : Command ) -> CoreCryptoResult < ( ) > {
51+ log:: info!( scope = "CoreCryptoFfi::transaction_ffi " , stage = 1 ; "awaiting transaction semaphore" ) ;
5252 let inner_context = Arc :: new ( self . inner . new_transaction ( ) . await ?) ;
53- log:: info!( scope = "CoreCryptoFfi::transaction " , stage = 2 ; "acquired semaphore; creating context" ) ;
53+ log:: info!( scope = "CoreCryptoFfi::transaction_ffi " , stage = 2 ; "acquired semaphore; creating context" ) ;
5454
5555 let context = CoreCryptoContext {
5656 inner : inner_context. clone ( ) ,
@@ -61,19 +61,19 @@ impl CoreCryptoFfi {
6161 // to reuse the code in both target contexts.
6262 let context = Arc :: new ( context) ;
6363
64- log:: info!( scope = "CoreCryptoFfi::transaction " , stage = 3 ; "created context; executing command" ) ;
64+ log:: info!( scope = "CoreCryptoFfi::transaction_ffi " , stage = 3 ; "created context; executing command" ) ;
6565 let result = command. execute ( context) . await ;
6666 match result {
6767 Ok ( ( ) ) => {
68- log:: info!( scope = "CoreCryptoFfi::transaction " , stage = 4 , command_success = true ; "command succeeded; committing transaction" ) ;
68+ log:: info!( scope = "CoreCryptoFfi::transaction_ffi " , stage = 4 , command_success = true ; "command succeeded; committing transaction" ) ;
6969 inner_context. finish ( ) . await ?;
70- log:: info!( scope = "CoreCryptoFfi::transaction " , stage = 5 , command_success = true ; "exiting successfully" ) ;
70+ log:: info!( scope = "CoreCryptoFfi::transaction_ffi " , stage = 5 , command_success = true ; "exiting successfully" ) ;
7171 Ok ( ( ) )
7272 }
7373 Err ( err) => {
74- log:: info!( scope = "CoreCryptoFfi::transaction " , stage = 4 , command_success = false ; "command failed; aborting transaction" ) ;
74+ log:: info!( scope = "CoreCryptoFfi::transaction_ffi " , stage = 4 , command_success = false ; "command failed; aborting transaction" ) ;
7575 inner_context. abort ( ) . await ?;
76- log:: info!( scope = "CoreCryptoFfi::transaction " , stage = 5 , command_success = false , err: err; "exiting propagating error" ) ;
76+ log:: info!( scope = "CoreCryptoFfi::transaction_ffi " , stage = 5 , command_success = false , err: err; "exiting propagating error" ) ;
7777 Err ( err)
7878 }
7979 }
0 commit comments