Rename ServerParams to Params to avoid stuttering

This commit is contained in:
2026-01-08 02:25:56 -08:00
parent 3f6328766c
commit 1824d99f55

View File

@@ -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,