Better ticker

master
Uriel Fanelli 2021-09-14 20:01:07 +02:00
parent 09703fdc6d
commit f8280032ef
1 changed files with 2 additions and 1 deletions

View File

@ -83,10 +83,11 @@ func loadAcme() {
func main() {
ticker := time.NewTicker(12 * time.Hour)
defer ticker.Stop()
loadAcme()
for range ticker.C {
for ; true; <-ticker.C {
for _, k := range MyAcme.Letsencryptresolver.Certificates {