Skip to content

Commit

Permalink
chore: rename new service function
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jan 18, 2024
1 parent 8c46ba1 commit c1687ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion main_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion main_wails.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func main() {
var wg sync.WaitGroup
wg.Add(1)

svc := CreateService(&wg)
svc := NewService(&wg)

go func() {
app := NewApp(svc)
Expand Down

0 comments on commit c1687ba

Please sign in to comment.