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