File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -999,7 +999,7 @@ impl Session {
999
999
async fn handle_set_keyspace_response (
1000
1000
& self ,
1001
1001
response : & NonErrorQueryResponse ,
1002
- ) -> Result < ( ) , ExecutionError > {
1002
+ ) -> Result < ( ) , UseKeyspaceError > {
1003
1003
if let Some ( set_keyspace) = response. as_set_keyspace ( ) {
1004
1004
debug ! (
1005
1005
"Detected USE KEYSPACE query, setting session's keyspace to {}" ,
@@ -1446,7 +1446,7 @@ impl Session {
1446
1446
/// # Ok(())
1447
1447
/// # }
1448
1448
/// ```
1449
- pub async fn prepare_batch ( & self , batch : & Batch ) -> Result < Batch , ExecutionError > {
1449
+ pub async fn prepare_batch ( & self , batch : & Batch ) -> Result < Batch , PrepareError > {
1450
1450
let mut prepared_batch = batch. clone ( ) ;
1451
1451
1452
1452
try_join_all (
@@ -1458,7 +1458,7 @@ impl Session {
1458
1458
let prepared = self . prepare ( query. clone ( ) ) . await ?;
1459
1459
* statement = BatchStatement :: PreparedStatement ( prepared) ;
1460
1460
}
1461
- Ok :: < ( ) , ExecutionError > ( ( ) )
1461
+ Ok :: < ( ) , PrepareError > ( ( ) )
1462
1462
} ) ,
1463
1463
)
1464
1464
. await ?;
You can’t perform that action at this time.
0 commit comments