Skip to content

Commit 865ba17

Browse files
committed
fix: update comments
1 parent b68cdf9 commit 865ba17

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

crates/batcher/src/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ impl Batcher {
627627
// * ---------------------------------------------------*
628628

629629
// All check functions sends the error to the metrics server and logs it
630-
// if they return false
630+
// if they return SubmitError
631631
self.msg_chain_id_is_valid(&client_msg).await?;
632632
self.msg_batcher_payment_addr_is_valid(&client_msg).await?;
633633
self.msg_proof_size_is_valid(&client_msg).await?;
@@ -1880,7 +1880,8 @@ impl Batcher {
18801880
}
18811881

18821882
/// Checks if the chain id matches the one in the config
1883-
/// and sends it to the metrics server if it doesn't matches
1883+
/// Returns SubmitError if chain id is not valid, logs the error,
1884+
/// and sends it to the metrics server
18841885
async fn msg_chain_id_is_valid(
18851886
&self,
18861887
client_msg: &SubmitProofMessage,
@@ -1896,8 +1897,8 @@ impl Batcher {
18961897
}
18971898

18981899
/// Checks if the message has a valid payment service address
1899-
/// Returns false, logs the error,
1900-
/// and sends it to the metrics server if it doesn't match
1900+
/// Returns SubmitError if payment_service address is not valid, logs the error,
1901+
/// and sends it to the metrics server
19011902
async fn msg_batcher_payment_addr_is_valid(
19021903
&self,
19031904
client_msg: &SubmitProofMessage,
@@ -1917,7 +1918,7 @@ impl Batcher {
19171918
}
19181919

19191920
/// Checks if the user's balance is unlocked
1920-
/// Returns false if balance is unlocked, logs the error,
1921+
/// Returns SubmitError if balance is unlocked, logs the error,
19211922
/// and sends it to the metrics server
19221923
async fn msg_user_balance_is_locked(&self, addr: &Address) -> Result<(), SubmitError> {
19231924
if self.user_balance_is_unlocked(addr).await {

0 commit comments

Comments
 (0)