Rename ServerParams to Params to avoid stuttering
This commit is contained in:
@@ -27,8 +27,8 @@ const (
|
|||||||
SentryFlushTimeout = 2 * time.Second
|
SentryFlushTimeout = 2 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
// ServerParams defines dependencies for Server.
|
// Params defines dependencies for Server.
|
||||||
type ServerParams struct {
|
type Params struct {
|
||||||
fx.In
|
fx.In
|
||||||
Logger *logger.Logger
|
Logger *logger.Logger
|
||||||
Globals *globals.Globals
|
Globals *globals.Globals
|
||||||
@@ -54,7 +54,7 @@ type Server struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Server instance.
|
// New creates a new Server instance.
|
||||||
func New(lc fx.Lifecycle, params ServerParams) (*Server, error) {
|
func New(lc fx.Lifecycle, params Params) (*Server, error) {
|
||||||
s := &Server{
|
s := &Server{
|
||||||
log: params.Logger.Get(),
|
log: params.Logger.Get(),
|
||||||
config: params.Config,
|
config: params.Config,
|
||||||
|
|||||||
Reference in New Issue
Block a user