Rename ConfigParams to Params to avoid stuttering

Esse commit está contido em:
2026-01-08 02:24:20 -08:00
commit d95d31df25
+3 -3
Ver Arquivo
@@ -18,8 +18,8 @@ const (
DefaultStateDir = "./data" DefaultStateDir = "./data"
) )
// ConfigParams defines dependencies for Config. // Params defines dependencies for Config.
type ConfigParams struct { type Params struct {
fx.In fx.In
Globals *globals.Globals Globals *globals.Globals
Logger *logger.Logger Logger *logger.Logger
@@ -38,7 +38,7 @@ type Config struct {
} }
// New creates a new Config instance by loading configuration from file. // 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() log := params.Logger.Get()
name := params.Globals.Appname name := params.Globals.Appname