Skip to content

Commit

Permalink
properly initialize parser on scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Aug 29, 2024
1 parent 0909c30 commit f3b3be8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ func Initialize(ctx context.Context) *Updater {
}

updateInstance := &Updater{
ctx: ctx,
db: db,
ctx: ctx,
db: db,
M3UParser: m3u.InitializeParser(),
}

c := cron.New()
Expand Down Expand Up @@ -98,7 +99,6 @@ func Initialize(ctx context.Context) *Updater {
}

updateInstance.Cron = c
updateInstance.M3UParser = m3u.InitializeParser()

return updateInstance
}
Expand Down

0 comments on commit f3b3be8

Please sign in to comment.