mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 20:21:56 +00:00
remove unnecessary casts (Refs #911)
This commit is contained in:
committed by
Ethan Buchman
parent
b3492356e6
commit
86af889dfb
@@ -66,7 +66,7 @@ type Mempool struct {
|
||||
recheckCursor *clist.CElement // next expected response
|
||||
recheckEnd *clist.CElement // re-checking stops here
|
||||
notifiedTxsAvailable bool // true if fired on txsAvailable for this height
|
||||
txsAvailable chan uint64 // fires the next height once for each height, when the mempool is not empty
|
||||
txsAvailable chan uint64 // fires the next height once for each height, when the mempool is not empty
|
||||
|
||||
// Keep a cache of already-seen txs.
|
||||
// This reduces the pressure on the proxyApp.
|
||||
@@ -433,7 +433,7 @@ type mempoolTx struct {
|
||||
|
||||
// Height returns the height for this transaction
|
||||
func (memTx *mempoolTx) Height() uint64 {
|
||||
return uint64(atomic.LoadUint64(&memTx.height))
|
||||
return atomic.LoadUint64(&memTx.height)
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user