Rename ConfigParams to Params to avoid stuttering
This commit is contained in:
1 parent
34fb126e6c
commit
d95d31df25
1 file changed
+3
-3
@@ -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