async fn end_transaction(&mut self, action: EndTransactionAction) -> Result<(), io::Error> {
        let resp = self.coord_client.end_transaction(action).await;
        if let Err(err) = resp {
            self.conn
                .send(BackendMessage::ErrorResponse(ErrorResponse::from_coord(
                    Severity::Error,
                    err,
                )))
                .await?;
        }
        Ok(())
    }
/// End a transaction and report to the user if an error occurred.
End a transaction and report to the user if an error occurred.
End a transaction and report to the user if an error occurred .
async fn end_transaction(&mut self, action: EndTransactionAction) -> Result<(), io::Error> {
        let resp = self.coord_client.end_transaction(action).await;
        if let Err(err) = resp {
            self.conn
                .send(BackendMessage::ErrorResponse(ErrorResponse::from_coord(
                    Severity::Error,
                    err,
                )))
                .await?;
        }
        Ok(())
    }
async fn end_transaction ( & mut self , action : EndTransactionAction ) -> Result < ( ) , io :: Error > { let resp = self . coord_client . end_transaction ( action ) . await ; if let Err ( err ) = resp { self . conn . send ( BackendMessage :: ErrorResponse ( ErrorResponse :: from_coord ( Severity :: Error , err , ) ) ) . await ? ; } Ok ( ( ) ) }
End a transaction and report to the user if an error occurred.
End a transaction and report to the user if an error occurred .
&mut self
action
EndTransactionAction
&mut self
action
EndTransactionAction