Rename ConfigParams to Params to avoid stuttering
This commit is contained in:
@@ -18,8 +18,8 @@ const (
|
||||
DefaultStateDir = "./data"
|
||||
)
|
||||
|
||||
// ConfigParams defines dependencies for Config.
|
||||
type ConfigParams struct {
|
||||
// Params defines dependencies for Config.
|
||||
type Params struct {
|
||||
fx.In
|
||||
Globals *globals.Globals
|
||||
Logger *logger.Logger
|
||||
@@ -38,7 +38,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
// New creates a new Config instance by loading configuration from file.
|
||||
func New(lc fx.Lifecycle, params ConfigParams) (*Config, error) {
|
||||
func New(lc fx.Lifecycle, params Params) (*Config, error) {
|
||||
log := params.Logger.Get()
|
||||
name := params.Globals.Appname
|
||||
|
||||
|
||||
Reference in New Issue
Block a user