Skip to content

Commit

Permalink
node: Add todo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Oct 7, 2024
1 parent 098bafa commit 31dc639
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/config/bridge_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,15 @@ impl BridgeBackendConfig {

env
}

#[allow(unused)]
pub fn convert_hashmap_to_vec(input: &HashMap<String, String>) -> Vec<(&str, &str)> {
let mut result: Vec<(&str, &str)> = Vec::new();

for val in input {
result.push((val.0.as_str(), val.1.as_str()));
}

result
}
}
2 changes: 1 addition & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub trait Config: Clone {
fn dir(&self) -> &PathBuf;
fn rpc_bind_host(&self) -> &str;
fn rpc_bind_port(&self) -> u16;
fn env(&self) -> Vec<(&'static str, &'static str)>;
fn env(&self) -> Vec<(&'static str, &'static str)>; // TODO: Isn't HashMap<String, String> more appropriate
fn node_config(&self) -> Option<&Self::NodeConfig>;
fn node_kind() -> NodeKind;
fn rollup_config(&self) -> &RollupConfig;
Expand Down

0 comments on commit 31dc639

Please sign in to comment.