nonce_manager: remove current nonce load when initialized
If nonce was just initialized, no need for store and load.
Just return the stored value without load.
@@ -43,10 +43,12 @@ where
.map_err(FromErr::from)?;
self.nonce.store(nonce.as_u64(), Ordering::SeqCst);
self.initialized.store(true, Ordering::SeqCst);
- }
+ Ok(nonce)
+ } else {
// return current nonce
Ok(self.nonce.load(Ordering::SeqCst).into())
}
+ }
async fn get_transaction_count_with_manager(
&self,
