mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
Move the database backend selection from the `dev` config file into the main `Config` struct, i.e. into production. This will enable an sql database backend to be used in production.
18 lines
495 B
Go
18 lines
495 B
Go
//go:build !dev
|
|
|
|
package terminal
|
|
|
|
// DevConfig is an empty shell struct that allows us to build without the dev
|
|
// tag. This struct is embedded in the main Config struct, and it adds no new
|
|
// functionality in a production build.
|
|
type DevConfig struct{}
|
|
|
|
// defaultDevConfig returns an empty DevConfig struct.
|
|
func defaultDevConfig() *DevConfig {
|
|
return &DevConfig{}
|
|
}
|
|
|
|
// Validate is a no-op function during a production build.
|
|
func (c *DevConfig) Validate(_, _ string) error {
|
|
return nil
|
|
}
|