fix: add serde default to MitoConfig (#2650)

* fix: add serde default to MitoConfig

* docs: update config toml
This commit is contained in:
Yingwen
2023-10-24 19:24:47 +08:00
committed by GitHub
parent 01fdbf3626
commit 16a3257ada
2 changed files with 5 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ const DEFAULT_MAX_BG_JOB: usize = 4;
/// Configuration for [MitoEngine](crate::engine::MitoEngine).
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
#[serde(default)]
pub struct MitoConfig {
// Worker configs:
/// Number of region workers (default 1).