Skip to content

Commit

Permalink
chore: clean up debug print statements and add spacing for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytimoshin committed Feb 20, 2025
1 parent b9261ce commit 468f646
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions forester-utils/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ pub async fn create_append_batch_ix_data<R: RpcConnection, I: Indexer<R>>(
.send()
.await
.expect("Failed to execute request.");

if response.status().is_success() {
let body = response.text().await.unwrap();
let proof_json = deserialize_gnark_proof_json(&body).unwrap();
Expand All @@ -316,7 +316,7 @@ pub async fn create_append_batch_ix_data<R: RpcConnection, I: Indexer<R>>(
));
}
};

Ok(InstructionDataBatchAppendInputs {
new_root,
compressed_proof: proof,
Expand Down
1 change: 1 addition & 0 deletions forester/src/batch_processor/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ impl<R: RpcConnection, I: Indexer<R> + IndexerType<R>> BatchProcessor<R, I> {
let mut rpc = self.context.rpc_pool.get_connection().await?;
let (_, zkp_batch_size) = self.get_num_inserted_zkps(&mut rpc).await?;
state::perform_append(&self.context, &mut rpc).await?;

Ok(zkp_batch_size)
}

Expand Down
5 changes: 0 additions & 5 deletions forester/src/batch_processor/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ pub(crate) async fn perform_append<R: RpcConnection, I: Indexer<R> + IndexerType
None,
)
.await?;
println!("tx state BatchAppendEvent: {:?}", tx);

update_test_indexer_after_append(
rpc,
Expand All @@ -58,7 +57,6 @@ pub(crate) async fn perform_append<R: RpcConnection, I: Indexer<R> + IndexerType
.await
.expect("Failed to update test indexer after append");

println!("batch append completed");
Ok(())
}

Expand All @@ -85,8 +83,6 @@ pub(crate) async fn perform_nullify<R: RpcConnection, I: Indexer<R> + IndexerTyp
.map_err(|e| BatchProcessError::InstructionData(e.to_string()))?,
);

println!("instruction: {:?}", instruction);

let tx = rpc
.create_and_send_transaction_with_event::<BatchNullifyEvent>(
&[instruction],
Expand All @@ -95,7 +91,6 @@ pub(crate) async fn perform_nullify<R: RpcConnection, I: Indexer<R> + IndexerTyp
None,
)
.await?;
println!("tx state BatchNullifyEvent: {:?}", tx);

update_test_indexer_after_nullification(
rpc,
Expand Down

0 comments on commit 468f646

Please sign in to comment.