Skip to content

Commit

Permalink
feat: update cache if there is no error explicitly
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Dec 4, 2024
1 parent a50a20e commit dcdb271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func (c *Cache[T]) StartPeriodicUpdate(updateFunc func() (T, error), interval ti
} else {
lumber.Error(err, "updating", c.name, "cache failed")
}
continue
} else {
c.Update(data)
}
c.Update(data)
}
}

0 comments on commit dcdb271

Please sign in to comment.