connection: don't skip event registration in authenticated connections
In `open_named_connection`, we immediately return the connection if we
receive AUTH_SUCCESS response. Because of that, we can accidentally skip
the logic which registers for events. This commit fixes that.
@@ -859,7 +859,7 @@ pub async fn open_named_connection(
)
}
Response::AuthSuccess(_authenticate_success) => {
- return Ok((connection, error_receiver));
+ // OK, continue
}
Response::Error(err) => {
return Err(err.into());
