Skip to content

Commit

Permalink
apply gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Aug 28, 2023
1 parent a130023 commit 5f4363e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ func updateMetadataLoop() {
url := "https://github.com/deltachat-bot/public-bots/raw/main/data.json"
logger := cli.Logger.With("origin", "metadata-loop")
for {
toSleep := 3 * time.Hour - time.Since(cfg.LastChecked)
if toSleep>0 {
toSleep := 3*time.Hour - time.Since(cfg.LastChecked)
if toSleep > 0 {
logger.Debugf("Sleeping for %v", toSleep)
time.Sleep(toSleep)
}
Expand Down

0 comments on commit 5f4363e

Please sign in to comment.