Skip to content

Commit

Permalink
Move init
Browse files Browse the repository at this point in the history
  • Loading branch information
m7kvqbe1 committed Mar 23, 2024
1 parent 4752f80 commit 7533ff9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ type Scraper struct {
done chan struct{}
}

func init() {
if err := godotenv.Load(); err != nil {
log.Fatalf("Error loading .env file: %v", err)
}
}

func (s *Scraper) sendText(number string) {
s.waitGroup.Add(1)
defer s.waitGroup.Done()
Expand Down Expand Up @@ -165,6 +159,12 @@ func (s *Scraper) scrapeLoop(ctx context.Context) {
}
}

func init() {
if err := godotenv.Load(); err != nil {
log.Fatalf("Error loading .env file: %v", err)
}
}

func main() {
log.Println("Polling for da tikz...")

Expand Down

0 comments on commit 7533ff9

Please sign in to comment.