Skip to content

Commit 31dc639

Browse files
committed
node: Add todo.
1 parent 098bafa commit 31dc639

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/config/bridge_backend.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,15 @@ impl BridgeBackendConfig {
190190

191191
env
192192
}
193+
194+
#[allow(unused)]
195+
pub fn convert_hashmap_to_vec(input: &HashMap<String, String>) -> Vec<(&str, &str)> {
196+
let mut result: Vec<(&str, &str)> = Vec::new();
197+
198+
for val in input {
199+
result.push((val.0.as_str(), val.1.as_str()));
200+
}
201+
202+
result
203+
}
193204
}

src/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub trait Config: Clone {
4343
fn dir(&self) -> &PathBuf;
4444
fn rpc_bind_host(&self) -> &str;
4545
fn rpc_bind_port(&self) -> u16;
46-
fn env(&self) -> Vec<(&'static str, &'static str)>;
46+
fn env(&self) -> Vec<(&'static str, &'static str)>; // TODO: Isn't HashMap<String, String> more appropriate
4747
fn node_config(&self) -> Option<&Self::NodeConfig>;
4848
fn node_kind() -> NodeKind;
4949
fn rollup_config(&self) -> &RollupConfig;

0 commit comments

Comments
 (0)