mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
chore: rename new service function
This commit is contained in:
parent
8c46ba1df4
commit
c1687baece
3 changed files with 3 additions and 3 deletions
2
main.go
2
main.go
|
|
@ -28,7 +28,7 @@ import (
|
|||
)
|
||||
|
||||
// TODO: move to service.go
|
||||
func CreateService(wg *sync.WaitGroup) *Service {
|
||||
func NewService(wg *sync.WaitGroup) *Service {
|
||||
// Load config from environment variables / .env file
|
||||
godotenv.Load(".env")
|
||||
cfg := &Config{}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ func main() {
|
|||
var wg sync.WaitGroup
|
||||
wg.Add(1)
|
||||
|
||||
svc := CreateService(&wg)
|
||||
svc := NewService(&wg)
|
||||
|
||||
if svc.cfg.CookieSecret == "" {
|
||||
svc.Logger.Fatalf("required key COOKIE_SECRET missing value")
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ func main() {
|
|||
var wg sync.WaitGroup
|
||||
wg.Add(1)
|
||||
|
||||
svc := CreateService(&wg)
|
||||
svc := NewService(&wg)
|
||||
|
||||
go func() {
|
||||
app := NewApp(svc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue