Skip to content

Commit 58dfe2b

Browse files
committed
fixed typos in comments
1 parent 236d549 commit 58dfe2b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/concensus/miner/src/pool/queue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ impl TransactionQueue {
415415
.collect()
416416
}
417417

418-
/// Performs garbage collection of the pool of this transactionqueue for free service transactions.
419-
/// Removes transaction that are not valid anymore.
418+
/// Performs garbage collection on the pool of this `TransactionQueue` for free service transactions.
419+
/// Removes transactions that are not valid anymore.
420420
/// The process executes listener calls.
421421
pub fn garbage_collect<F: Fn(&VerifiedTransaction) -> bool>(
422422
&self,

crates/ethcore/src/client/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ pub struct Client {
306306

307307
shutdown: Arc<ShutdownManager>,
308308

309-
/// block number and block has of latest gc.
309+
/// block number and block hash of latest gc.
310310
/// this information is used to avoid double garbage collection.
311311
garbage_collect_latest_block: Mutex<(u64, H256)>,
312312

@@ -1577,9 +1577,9 @@ impl Client {
15771577
}
15781578

15791579
// here hides an accepted race condition.
1580-
// latest block could change during loing ongoing GCs.
1580+
// latest block could change during long ongoing GCs.
15811581
// this could be avoided developing a more complex GC logic.
1582-
// but the GC blocks the tx queue, so it has to be placing fast.
1582+
// but the GC blocks the tx queue, so it has to be blazing fast.
15831583
self.importer.miner.collect_garbage(|tx|
15841584
match machine.verify_transaction(tx.signed(), block_header, self) {
15851585
Ok(_) => true,

crates/ethcore/src/miner/miner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ impl Miner {
421421
}
422422

423423
/// Performs garbage collection of the pool for free service transactions.
424-
/// Removes transaction that are not valid anymore.
424+
/// Removes transactions that are not valid anymore.
425425
/// The process executes listener calls.
426426
pub fn collect_garbage<F: Fn(&VerifiedTransaction) -> bool>(
427427
&self,

0 commit comments

Comments
 (0)