flush wal group on stop

Refs #1659
Refs https://github.com/tendermint/tmlibs/pull/217
This commit is contained in:
Anton Kaliaev
2018-06-04 16:34:16 +04:00
parent 0562009275
commit 1f22f34edf
3 changed files with 5 additions and 5 deletions

View File

@ -106,8 +106,8 @@ func (wal *baseWAL) OnStart() error {
}
func (wal *baseWAL) OnStop() {
wal.BaseService.OnStop()
wal.group.Stop()
wal.group.Close()
}
// Write is called in newStep and for each receive on the