mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
linter: fix lint issues after linter v2 update
This commit is contained in:
parent
bd6271e633
commit
e98f733ef8
29 changed files with 65 additions and 59 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue