Skip to content

Commit

Permalink
feat(jstzd): update
Browse files Browse the repository at this point in the history
  • Loading branch information
huancheng-trili committed Sep 18, 2024
1 parent 5038ae7 commit a7cb949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions crates/jstzd/src/task/inner_octez_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ impl InnerOctezNode {
pub async fn config_init(
&self,
network: &str,
http_endpoint: &str,
rpc_endpoint: &str,
num_connections: u32,
) -> Result<()> {
Expand All @@ -53,8 +52,6 @@ impl InnerOctezNode {
network,
"--data-dir",
self.octez_node_dir.to_str().expect("Invalid path"),
"--net-addr",
http_endpoint,
"--rpc-addr",
rpc_endpoint,
"--connections",
Expand Down Expand Up @@ -210,12 +207,12 @@ mod tests {
octez_node_dir: PathBuf::from("/some_dir"),
};
assert!(
node.config_init("foo", "bar", "baz", 42)
node.config_init("foo", "bar", 42)
.await
.unwrap_err()
.to_string()
.contains(
"my-node config init --network foo --data-dir /some_dir --net-addr bar --rpc-addr baz --connections 42"
"my-node config init --network foo --data-dir /some_dir --rpc-addr bar --connections 42"
)
);
}
Expand Down
2 changes: 0 additions & 2 deletions crates/jstzd/src/task/octez_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ impl Task for OctezNode {

node.config_init(
&config.network,
"localhost:8731",
&config.rpc_endpoint,
config.num_connections,
)
Expand Down Expand Up @@ -174,7 +173,6 @@ mod tests {
pub async fn config_init(
&self,
_network: &str,
_http_endpoint: &str,
_rpc_endpoint: &str,
_num_connections: u32,
) -> Result<()> {
Expand Down

0 comments on commit a7cb949

Please sign in to comment.