diff --git a/chain-state/src/da_handler.rs b/chain-state/src/da_handler.rs index dbb506a..7a5c370 100644 --- a/chain-state/src/da_handler.rs +++ b/chain-state/src/da_handler.rs @@ -56,8 +56,8 @@ async fn check_da_logs(chain_state: Arc) -> Result<()> { from, to ); check_data_logs(chain_state.clone(), from, to).await?; + chain_state.db.write().await.put_progress(to + 1).await?; } - chain_state.db.write().await.put_progress(to + 1).await?; } else { bail!(anyhow!("block number is empty")); } diff --git a/grpc/src/service.rs b/grpc/src/service.rs index 49b35ca..2b82b83 100644 --- a/grpc/src/service.rs +++ b/grpc/src/service.rs @@ -251,9 +251,7 @@ impl Signer for SignerService { &self, request: Request, ) -> Result, Status> { - let status = signer::StatusReply { - status_code: 200 - }; + let status = signer::StatusReply { status_code: 200 }; Ok(Response::new(status)) } }