build: silence new linter errors, tidy modules

The explicit `bbolt` dep is gone, as we depend on `kvdb`, which is
actually `walletdb`, which has its own module that defines the proper
`bbolt` version.
This commit is contained in:
Olaoluwa Osuntokun committed 2020-03-18 19:35:29 -07:00
1 parent 071c7cbe78
commit a4e39906b1
7 files changed
+12 -19

No files matched your search

+5 -3
View File
@@ -345,15 +345,17 @@ func TestMigrationWithoutErrors(t *testing.T) {
// Populate database with initial data.
beforeMigrationFunc := func(d *DB) {
kvdb.Update(d, func(tx kvdb.RwTx) error {
err := kvdb.Update(d, func(tx kvdb.RwTx) error {
bucket, err := tx.CreateTopLevelBucket(bucketPrefix)
if err != nil {
return err
}
bucket.Put(keyPrefix, beforeMigration)
return nil
return bucket.Put(keyPrefix, beforeMigration)
})
if err != nil {
t.Fatalf("unable to update db pre migration: %v", err)
}
}
// Create migration function which changes the initially created data.