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