Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickeskov committed Oct 16, 2024
1 parent 4e424e2 commit 0a495ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/bots/discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,16 @@ func runDiscordBot() error {
}()
<-ctx.Done()

waitScheduler(taskScheduler, logger)
logger.Info("Discord bot finished")
return nil
}

func waitScheduler(taskScheduler chrono.TaskScheduler, logger *zap.Logger) {
if !taskScheduler.IsShutdown() {
<-taskScheduler.Shutdown()
logger.Info("Task scheduler has been shutdown successfully")
}
logger.Info("Discord bot finished")
return nil
}

func runMessagingClients(
Expand Down

0 comments on commit 0a495ab

Please sign in to comment.