Skip to content

Commit

Permalink
fix: golint
Browse files Browse the repository at this point in the history
  • Loading branch information
OldTyT committed Feb 3, 2024
1 parent d8d8dc7 commit a39fd6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/frigate/frigate.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func SendTextEvent(FrigateEvent EventStruct, bot *tgbotapi.BotAPI) {

func NotifyEvents(bot *tgbotapi.BotAPI, FrigateEventsURL string) {
conf := config.New()
for true {
for {
FrigateEvents := GetEvents(FrigateEventsURL, bot, false)
ParseEvents(FrigateEvents, bot, true)
time.Sleep(time.Duration(conf.WatchDogSleepTime) * time.Second)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func main() {
go frigate.NotifyEvents(bot, FrigateEventsURL)
}
// Starting loop for getting events from Frigate
for true {
for {
FrigateEvents := frigate.GetEvents(FrigateEventsURL, bot, true)
frigate.ParseEvents(FrigateEvents, bot, false)
time.Sleep(time.Duration(conf.SleepTime) * time.Second)
Expand Down

0 comments on commit a39fd6a

Please sign in to comment.