Skip to content

Commit

Permalink
Misc minor fixes. (#2539)
Browse files Browse the repository at this point in the history
* Fix cargo machete error: remove unused dep.

* Fix grammar: first_nth → first_n

* Move attributes to after the comments.

* Remove redundant prepare_chain calls.
  • Loading branch information
afck authored Sep 25, 2024
1 parent 2cf44d8 commit 0a6eccc
Show file tree
Hide file tree
Showing 13 changed files with 120 additions and 124 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions linera-client/src/client_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ where
// Try processing the inbox optimistically without waiting for validator notifications.
let (new_certificates, maybe_timeout) = {
chain_client.synchronize_from_validators().await?;
let result = chain_client.process_inbox().await;
let result = chain_client.process_inbox_without_prepare().await;
self.update_wallet_from_client(chain_client).await?;
if result.is_err() {
self.save_wallet().await?;
Expand Down Expand Up @@ -431,7 +431,6 @@ where
info!("{}", "Bytecode published successfully!");

info!("Synchronizing client and processing inbox");
chain_client.synchronize_from_validators().await?;
self.process_inbox(chain_client).await?;
Ok(bytecode_id)
}
Expand Down
2 changes: 1 addition & 1 deletion linera-core/src/chain_worker/state/temporary_changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ where
let keys = chain.confirmed_log.read(start..end).await?;
info.requested_sent_certificate_hashes = keys;
}
if let Some(start) = query.request_received_log_excluding_first_nth {
if let Some(start) = query.request_received_log_excluding_first_n {
let start = usize::try_from(start).map_err(|_| ArithmeticError::Overflow)?;
info.requested_received_log = chain.received_log.read(start..).await?;
}
Expand Down
Loading

0 comments on commit 0a6eccc

Please sign in to comment.