Skip to content

Commit

Permalink
chore: remove goroutine from main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
OldTyT authored Nov 25, 2023
1 parent 86b9a94 commit abd57b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func main() {
// Starting loop for getting events from Frigate
for true {

Check failure on line 78 in main.go

View workflow job for this annotation

GitHub Actions / Lint check

S1006: should use for {} instead of for true {} (gosimple)
FrigateEvents := frigate.GetEvents(FrigateEventsURL, bot)
go frigate.ParseEvents(FrigateEvents, bot)
frigate.ParseEvents(FrigateEvents, bot)

time.Sleep(time.Duration(conf.SleepTime) * time.Second)
log.Debug.Println("Sleeping for " + strconv.Itoa(conf.SleepTime) + " seconds.")
Expand Down

0 comments on commit abd57b0

Please sign in to comment.