channeldb: remove unused tx argument

This commit is contained in:
Oliver Gugger
2022-09-30 14:17:12 +02:00
parent ee9d6f21bd
commit 28c8e8b6dd
3 changed files with 9 additions and 10 deletions

View File

@@ -28,9 +28,8 @@ type Meta struct {
DbVersionNumber uint32
}
// FetchMeta fetches the meta data from boltdb and returns filled meta
// structure.
func (d *DB) FetchMeta(tx kvdb.RTx) (*Meta, error) {
// FetchMeta fetches the metadata from boltdb and returns filled meta structure.
func (d *DB) FetchMeta() (*Meta, error) {
var meta *Meta
err := kvdb.View(d, func(tx kvdb.RTx) error {