Better ticker
parent
09703fdc6d
commit
f8280032ef
3
zumba.go
3
zumba.go
|
@ -83,10 +83,11 @@ func loadAcme() {
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
ticker := time.NewTicker(12 * time.Hour)
|
ticker := time.NewTicker(12 * time.Hour)
|
||||||
|
defer ticker.Stop()
|
||||||
|
|
||||||
loadAcme()
|
loadAcme()
|
||||||
|
|
||||||
for range ticker.C {
|
for ; true; <-ticker.C {
|
||||||
|
|
||||||
for _, k := range MyAcme.Letsencryptresolver.Certificates {
|
for _, k := range MyAcme.Letsencryptresolver.Certificates {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue