mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #6390 from gyuho/simple
wal: simplify dir.Close call
This commit is contained in:
commit
b22b405465
@ -507,11 +507,7 @@ func (w *WAL) Close() error {
|
||||
}
|
||||
}
|
||||
|
||||
if err := w.dirFile.Close(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return w.dirFile.Close()
|
||||
}
|
||||
|
||||
func (w *WAL) saveEntry(e *raftpb.Entry) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user