File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments