forked from cerc-io/ipfs-ethdb
Compare commits
2
Commits
v5.0.0-alpha
..
v5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9420ff2b8 | ||
|
|
c438c158fc |
@@ -278,9 +278,10 @@ func (d *Database) NewIterator(prefix []byte, start []byte) ethdb.Iterator {
|
||||
return NewIterator(start, prefix, d.db)
|
||||
}
|
||||
|
||||
// Close satisfies the io.Closer interface
|
||||
// Close closes the db connection
|
||||
// Close satisfies the io.Closer interface.
|
||||
// Close closes the db connection and deregisters from groupcache.
|
||||
func (d *Database) Close() error {
|
||||
groupcache.DeregisterGroup(d.cache.Name())
|
||||
return d.db.DB.Close()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user