Skip to content

Commit

Permalink
fix(config): network case (#2278)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Jun 4, 2024
1 parent f5893e1 commit c52b74e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/created-swarm/src/swarm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ pub async fn create_swarm_with_runtime<RT: AquaRuntime>(
let tmp_dir = config.tmp_dir.path().to_path_buf();

let node_config = json!({
"network": "Dar",
"network": "dar",
"base_dir": tmp_dir.to_string_lossy(),
"root_key_pair": {
"format": format,
Expand Down
1 change: 1 addition & 0 deletions crates/server-config/src/node_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ pub struct UnresolvedNodeConfig {

#[serde_as]
#[derive(Clone, Deserialize, Serialize, Debug, Default, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum Network {
#[default]
Dar,
Expand Down
2 changes: 1 addition & 1 deletion crates/server-config/src/resolved_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ mod tests {
file,
r#"
[network]
Custom = "12458ae2e882cc71eaf2de71101c76a77a54ee89cae8897b231a8a1cb4e90f80"
custom = "12458ae2e882cc71eaf2de71101c76a77a54ee89cae8897b231a8a1cb4e90f80"
"#
)
.expect("Could not write in file");
Expand Down
2 changes: 1 addition & 1 deletion nox/tests/http_expected_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ particle_processor_parallelism = 16
bootstrap_frequency = 3
allow_local_addresses = false
management_peer_id = "12D3KooWELdQw9pQVdq5NS6gEHsWMbYpLh3PjqFyNbivYWuATcik"
network = "Dar"
network = "dar"

[node_config.transport_config]
transport = "Network"
Expand Down
2 changes: 1 addition & 1 deletion nox/tests/http_test_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ allowed_binaries = [
]
no_banner = false
print_config = true
network = "Dar"
network = "dar"

[root_key_pair]
format = "ed25519"
Expand Down

0 comments on commit c52b74e

Please sign in to comment.