mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-25 17:34:36 +00:00
Fix minor bug in Consensus WAL; Fix AutoFile dependency
This commit is contained in:
+3
-2
@@ -7,6 +7,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
auto "github.com/tendermint/go-autofile"
|
||||
"github.com/tendermint/go-clist"
|
||||
. "github.com/tendermint/go-common"
|
||||
cfg "github.com/tendermint/go-config"
|
||||
@@ -62,7 +63,7 @@ type Mempool struct {
|
||||
cache *txCache
|
||||
|
||||
// A log of mempool txs
|
||||
wal *AutoFile
|
||||
wal *auto.AutoFile
|
||||
}
|
||||
|
||||
func NewMempool(config cfg.Config, proxyAppConn proxy.AppConnMempool) *Mempool {
|
||||
@@ -86,7 +87,7 @@ func NewMempool(config cfg.Config, proxyAppConn proxy.AppConnMempool) *Mempool {
|
||||
func (mem *Mempool) initWAL() {
|
||||
walFileName := mem.config.GetString("mempool_wal")
|
||||
if walFileName != "" {
|
||||
af, err := OpenAutoFile(walFileName)
|
||||
af, err := auto.OpenAutoFile(walFileName)
|
||||
if err != nil {
|
||||
PanicSanity(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user