chore: update documentation

This commit is contained in:
nathan
2022-12-01 10:59:22 +08:00
parent 96c427e869
commit bf36ef7fd9
13 changed files with 74 additions and 55 deletions

View File

@ -1,7 +1,7 @@
use bytes::Bytes;
use flowy_derive::ProtoBuf;
use flowy_error_code::ErrorCode;
use lib_dispatch::prelude::{EventResponse, ResponseBuilder};
use lib_dispatch::prelude::{AFPluginEventResponse, ResponseBuilder};
use std::{convert::TryInto, fmt, fmt::Debug};
pub type FlowyResult<T> = std::result::Result<T, FlowyError>;
@ -93,7 +93,7 @@ impl fmt::Display for FlowyError {
}
impl lib_dispatch::Error for FlowyError {
fn as_response(&self) -> EventResponse {
fn as_response(&self) -> AFPluginEventResponse {
let bytes: Bytes = self.clone().try_into().unwrap();
println!("Serialize FlowyError: {:?} to event response", self);