Skip to content

Commit bf5c649

Browse files
committed
session: narrow error type of handle_set_keyspace_response
It's called in Session::execute/query, where the error is transformed to ExecutionError.
1 parent e66f2e3 commit bf5c649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla/src/client/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ impl Session {
999999
async fn handle_set_keyspace_response(
10001000
&self,
10011001
response: &NonErrorQueryResponse,
1002-
) -> Result<(), ExecutionError> {
1002+
) -> Result<(), UseKeyspaceError> {
10031003
if let Some(set_keyspace) = response.as_set_keyspace() {
10041004
debug!(
10051005
"Detected USE KEYSPACE query, setting session's keyspace to {}",

0 commit comments

Comments
 (0)