linter: fix lint issues after linter v2 update

This commit is contained in:
Slyghtning 2025-08-19 17:06:42 +02:00
parent bd6271e633
commit e98f733ef8
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
29 changed files with 65 additions and 59 deletions

View file

@ -59,9 +59,9 @@ func (s *PostgresConfig) DSN(hidePassword bool) string {
// PostgresStore is a database store implementation that uses a Postgres
// backend.
type PostgresStore struct {
cfg *PostgresConfig
*BaseDB
cfg *PostgresConfig
}
// In migration of sweeps table from outpoint_txid and outpoint_index to

View file

@ -48,7 +48,7 @@ func TestProtocolVersionSanity(t *testing.T) {
require.Equal(t, uint32(version), uint32(rpcVersions[i]))
}
// Finally test that the current version contants are up to date
// Finally, test that the current version constants are up to date
require.Equal(t,
CurrentProtocolVersion(),
versions[len(versions)-1],

View file

@ -40,9 +40,9 @@ type SqliteConfig struct {
// SqliteSwapStore is a sqlite3 based database for the loop daemon.
type SqliteSwapStore struct {
cfg *SqliteConfig
*BaseDB
cfg *SqliteConfig
}
// NewSqliteStore attempts to open a new sqlite database based on the passed
@ -174,11 +174,11 @@ func NewTestSqliteDB(t *testing.T) *SqliteSwapStore {
// BaseDB is the base database struct that each implementation can embed to
// gain some common functionality.
type BaseDB struct {
network *chaincfg.Params
*sql.DB
*sqlc.Queries
network *chaincfg.Params
}
// BeginTx wraps the normal sql specific BeginTx method with the TxOptions