Skip to content

Commit

Permalink
fix example.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Dec 23, 2024
1 parent 0b085a5 commit ebfc814
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 5 additions & 4 deletions docs/example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ enable_write = true
write_worker_num = 1
write_interval = "500ms"

[metric_engine.storage]
[metric_engine.threads]
sst_thread_num = 2
manifest_thread_num = 2

[metric_engine.storage.object_store]
type = "Local"
data_dir = "/tmp/horaedb-storage"

[metric_engine.sst]
background_thread_num = 2
6 changes: 0 additions & 6 deletions src/server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,10 @@ pub struct MetricEngineConfig {
#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(default, deny_unknown_fields)]
pub struct ThreadConfig {
#[serde(default = "default_thread_num")]
pub manifest_thread_num: usize,
#[serde(default = "default_thread_num")]
pub sst_thread_num: usize,
}

fn default_thread_num() -> usize {
2
}

impl Default for ThreadConfig {
fn default() -> Self {
Self {
Expand Down

0 comments on commit ebfc814

Please sign in to comment.