refactor: remove http server ref (#3327)

This commit is contained in:
Nathan.fooo
2023-09-04 15:50:38 +08:00
committed by GitHub
parent af0ae2e375
commit a821740469
4 changed files with 0 additions and 32 deletions

View File

@ -1,16 +0,0 @@
use crate::code::ErrorCode;
use http_error_code::ErrorCode as ServerErrorCode;
impl std::convert::From<ServerErrorCode> for ErrorCode {
fn from(code: ServerErrorCode) -> Self {
match code {
ServerErrorCode::UserUnauthorized => ErrorCode::UserUnauthorized,
ServerErrorCode::PasswordNotMatch => ErrorCode::PasswordNotMatch,
ServerErrorCode::RecordNotFound => ErrorCode::RecordNotFound,
ServerErrorCode::ConnectRefused
| ServerErrorCode::ConnectTimeout
| ServerErrorCode::ConnectClose => ErrorCode::HttpError,
_ => ErrorCode::Internal,
}
}
}

View File

@ -13,9 +13,6 @@ pub mod reqwest;
#[cfg(feature = "impl_from_sqlite")]
pub mod database;
#[cfg(feature = "impl_from_appflowy_cloud")]
pub mod http_server;
#[cfg(feature = "impl_from_collab")]
pub mod collab;