refactor: rename error-code to flowy-error-code in case of ambiguous

This commit is contained in:
appflowy
2022-02-09 19:26:06 +08:00
parent 93863462a2
commit 5809758539
30 changed files with 224 additions and 68 deletions

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
error-code = { path = "../../../shared-lib/error-code"}
flowy-error-code = { path = "../../../shared-lib/flowy-error-code"}
lib-dispatch = { path = "../lib-dispatch" }
protobuf = {version = "2.20.0"}
bytes = "1.0"
@ -27,7 +27,7 @@ ot = ["lib-ot"]
serde = ["serde_json"]
http_server = ["http-flowy"]
db = ["flowy-database", "lib-sqlite", "r2d2"]
dart = ["error-code/dart", "lib-infra/dart"]
dart = ["flowy-error-code/dart", "lib-infra/dart"]
[build-dependencies]
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen"] }

View File

@ -1,6 +1,6 @@
use bytes::Bytes;
use error_code::ErrorCode;
use flowy_derive::ProtoBuf;
use flowy_error_code::ErrorCode;
use lib_dispatch::prelude::{EventResponse, ResponseBuilder};
use std::{convert::TryInto, fmt, fmt::Debug};

View File

@ -1,5 +1,5 @@
use crate::FlowyError;
use error_code::ErrorCode;
use flowy_error_code::ErrorCode;
use http_flowy::errors::{ErrorCode as ServerErrorCode, ServerError};
impl std::convert::From<ServerError> for FlowyError {

View File

@ -2,5 +2,5 @@ mod errors;
mod ext;
pub mod protobuf;
pub use error_code::ErrorCode;
pub use errors::*;
pub use flowy_error_code::ErrorCode;