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:
7 files changed
+12
-19
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user