Skip to content

Commit

Permalink
chore(config): Rename runtime.type to runtime.flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Jun 11, 2024
1 parent ce3f9e9 commit 738f899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ listen_addr = "127.0.0.1:9000"
### Runtime Configuration Options ###
#######################################################
[runtime]
# The type of Tokio runtime to use.
# The flavor of Tokio runtime to use.
# Possible values:
# - "single_threaded": A single threaded runtime (default)
# - "multi_threaded": A multi-threaded runtime
type = "single_threaded"
flavor = "single_threaded"

# For the multi-threaded runtime only.
# Sets the number of worker threads the Runtime will use.
Expand Down
2 changes: 1 addition & 1 deletion code/crates/node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub struct MetricsConfig {
}

#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
#[serde(tag = "type", rename_all = "snake_case")]
#[serde(tag = "flavor", rename_all = "snake_case")]
pub enum RuntimeConfig {
/// Single-threaded runtime
#[default]
Expand Down

0 comments on commit 738f899

Please sign in to comment.