remove flush call after recheck tx

This commit is contained in:
Callum Waters
2022-11-22 12:11:47 +01:00
parent f6ceff0328
commit 418975ecd6
2 changed files with 6 additions and 4 deletions

View File

@@ -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.
}
//--------------------------------------------------------------------------------

View File

@@ -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()