mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: replace uuid with nanoid
This commit is contained in:
@ -14,7 +14,7 @@ futures = "0.3.15"
|
||||
futures-util = "0.3.15"
|
||||
bytes = {version = "1.0", features = ["serde"]}
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
uuid = { version = "0.8", features = ["serde", "v4"] }
|
||||
nanoid = "0.4.0"
|
||||
log = "0.4.14"
|
||||
env_logger = "0.8"
|
||||
serde_with = "1.9.4"
|
||||
|
@ -22,6 +22,7 @@ use crate::{
|
||||
},
|
||||
};
|
||||
use futures_core::future::BoxFuture;
|
||||
use nanoid::nanoid;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub type ModuleMap = Arc<HashMap<Event, Arc<Module>>>;
|
||||
@ -118,7 +119,7 @@ impl ModuleRequest {
|
||||
E: Into<Event>,
|
||||
{
|
||||
Self {
|
||||
id: uuid::Uuid::new_v4().to_string(),
|
||||
id: nanoid!(6),
|
||||
event: event.into(),
|
||||
payload: Payload::None,
|
||||
}
|
||||
|
Reference in New Issue
Block a user