refactor: user aborted_session_code() instead of AbortedSession().code().
@@ -117,8 +117,8 @@ impl Executor {
});
if let Err(e) = reason {
- if e.code() != ErrorCode::AbortedSession("").code()
- && e.code() != ErrorCode::AbortedQuery("").code()
+ if e.code() != ErrorCode::aborted_session_code()
+ && e.code() != ErrorCode::aborted_query_code()
{
// query state can be pulled multi times, only log it once
tracing::error!("Query Error: {:?}", e);
