diff --git a/src/commands/run.rs b/src/commands/run.rs index 53726c2..d53130c 100644 --- a/src/commands/run.rs +++ b/src/commands/run.rs @@ -99,7 +99,7 @@ impl RunCmd { )); } Some(settlement_conf_path) => NetworkSpec::Ethereum( - EthereumSettlementConfig::from_conf_path(&settlement_conf_path)?, + EthereumSettlementConfig::from_conf_path(settlement_conf_path)?, ), }, }; diff --git a/src/prover/provider.rs b/src/prover/provider.rs index f07f1ef..780f19f 100644 --- a/src/prover/provider.rs +++ b/src/prover/provider.rs @@ -122,11 +122,10 @@ impl ProverChannel { pub async fn stop(&mut self) -> Result<()> { // stop the endpoint - Ok(self - .stop_endpoint_tx + self.stop_endpoint_tx .send(()) .await - .map_err(|e| anyhow!("Failed to stop the endpoint: {:?}", e))?) + .map_err(|e| anyhow!("Failed to stop the endpoint: {:?}", e)) } pub async fn execute(&mut self, batch: BlockNumber) -> Result<()> {