Fix minor bug in Consensus WAL; Fix AutoFile dependency

This commit is contained in:
Jae Kwon
2016-10-26 21:51:03 -07:00
parent 642a24dc9c
commit 830e84adc4
2 changed files with 11 additions and 9 deletions
+3 -2
View File
@@ -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)
}