mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
XDCxDAO: fix staticcheck warning SA5007: infinite recursive call
This commit is contained in:
parent
3f0e1576ab
commit
381226c506
1 changed files with 4 additions and 1 deletions
|
|
@ -825,7 +825,10 @@ func (db *MongoDatabase) EnsureIndexes() error {
|
|||
}
|
||||
|
||||
func (db *MongoDatabase) Close() error {
|
||||
return db.Close()
|
||||
if db.Session != nil {
|
||||
db.Session.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// HasAncient returns an error as we don't have a backing chain freezer.
|
||||
|
|
|
|||
Loading…
Reference in a new issue