fix: remove redundante names
This commit was merged in pull request #299.
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"me-fit/log"
|
||||
)
|
||||
|
||||
type ServerSettings struct {
|
||||
type Settings struct {
|
||||
Port string
|
||||
PrometheusEnabled bool
|
||||
|
||||
@@ -22,7 +22,7 @@ type SmtpSettings struct {
|
||||
FromName string
|
||||
}
|
||||
|
||||
func NewServerSettingsFromEnv(env func(string) string) *ServerSettings {
|
||||
func NewSettingsFromEnv(env func(string) string) *Settings {
|
||||
|
||||
var smtp *SmtpSettings
|
||||
if env("SMTP_ENABLED") == "true" {
|
||||
@@ -55,7 +55,7 @@ func NewServerSettingsFromEnv(env func(string) string) *ServerSettings {
|
||||
}
|
||||
}
|
||||
|
||||
settings := &ServerSettings{
|
||||
settings := &Settings{
|
||||
Port: env("PORT"),
|
||||
PrometheusEnabled: env("PROMETHEUS_ENABLED") == "true",
|
||||
BaseUrl: env("BASE_URL"),
|
||||
|
||||
Reference in New Issue
Block a user