Skip to content

Commit 5c6c776

Browse files
committed
chore: comments on cut condition
1 parent 3030f1e commit 5c6c776

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

batcher/aligned-sdk/src/communication/messaging.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ pub async fn send_messages(
8989
// Reads the WS responses
9090
// Matches each response with the corresponding proof sent
9191
// finishes when the last proof sent receives its response
92+
// finishes early if the batcher replies with a SubmitError
9293
pub async fn receive(
9394
response_stream: Arc<Mutex<ResponseStream>>,
9495
mut sent_verification_data_rev: Vec<Result<NoncedVerificationData, SubmitError>>,

batcher/aligned-sdk/src/sdk.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ pub fn get_aligned_service_manager_address(network: Network) -> ethers::types::H
290290
}
291291
}
292292

293+
// Will submit the proofs to the batcher and wait for their responses
294+
// Will return once all proofs are responded, or up to when a proof is responded with an error
293295
async fn _submit_multiple(
294296
ws_write: Arc<Mutex<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>>>,
295297
mut ws_read: SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>,

0 commit comments

Comments
 (0)