mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
refactor: remove http server ref (#3327)
This commit is contained in:
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user