Skip to content

Commit ac3c583

Browse files
committed
session: narrow error type of prepare_batch
This is a public API, so it's API breaking.
1 parent bf5c649 commit ac3c583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scylla/src/client/session.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ impl Session {
14461446
/// # Ok(())
14471447
/// # }
14481448
/// ```
1449-
pub async fn prepare_batch(&self, batch: &Batch) -> Result<Batch, ExecutionError> {
1449+
pub async fn prepare_batch(&self, batch: &Batch) -> Result<Batch, PrepareError> {
14501450
let mut prepared_batch = batch.clone();
14511451

14521452
try_join_all(
@@ -1458,7 +1458,7 @@ impl Session {
14581458
let prepared = self.prepare(query.clone()).await?;
14591459
*statement = BatchStatement::PreparedStatement(prepared);
14601460
}
1461-
Ok::<(), ExecutionError>(())
1461+
Ok::<(), PrepareError>(())
14621462
}),
14631463
)
14641464
.await?;

0 commit comments

Comments
 (0)