mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-08 04:50:16 +00:00
remove flush call after recheck tx
This commit is contained in:
@@ -664,9 +664,9 @@ func (mem *CListMempool) recheckTxs() {
|
||||
}
|
||||
}
|
||||
|
||||
if err := mem.proxyAppConn.Flush(context.TODO()); err != nil {
|
||||
mem.logger.Error("recheckTx flush", err, "err")
|
||||
}
|
||||
// In <v0.37 we would call FlushAsync at the end of recheckTx forcing the buffer to flush
|
||||
// all pending messages to the app. There doesn't seem to be any need here as the buffer
|
||||
// will get flushed regularly or when filled.
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------
|
||||
|
||||
@@ -693,7 +693,9 @@ func (txmp *TxMempool) recheckTransactions() {
|
||||
return nil
|
||||
})
|
||||
}
|
||||
_ = txmp.proxyAppConn.Flush(context.TODO())
|
||||
// In <v0.37 we would call FlushAsync at the end of recheckTx forcing the buffer to flush
|
||||
// all pending messages to the app. There doesn't seem to be any need here as the buffer
|
||||
// will get flushed regularly or when filled.
|
||||
|
||||
// When recheck is complete, trigger a notification for more transactions.
|
||||
_ = g.Wait()
|
||||
|
||||
Reference in New Issue
Block a user