Rename LoggerParams to Params to avoid stuttering
This commit is contained in:
1 parent
1824d99f55
commit
31df1a4a03
1 file changed
+3
-3
@@ -9,8 +9,8 @@ import (
|
||||
"sneak.berlin/go/pixa/internal/globals"
|
||||
)
|
||||
|
||||
// LoggerParams defines dependencies for Logger.
|
||||
type LoggerParams struct {
|
||||
// Params defines dependencies for Logger.
|
||||
type Params struct {
|
||||
fx.In
|
||||
Globals *globals.Globals
|
||||
}
|
||||
@@ -23,7 +23,7 @@ type Logger struct {
|
||||
}
|
||||
|
||||
// New creates a new Logger instance.
|
||||
func New(lc fx.Lifecycle, params LoggerParams) (*Logger, error) {
|
||||
func New(lc fx.Lifecycle, params Params) (*Logger, error) {
|
||||
l := &Logger{
|
||||
level: new(slog.LevelVar),
|
||||
globals: params.Globals,
|
||||
|
||||
Reference in new issue
Block a user