mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 09:48:32 +02:00
small changes
This commit is contained in:
@@ -155,11 +155,11 @@ func (p *Provider) ScheduleRenewal() {
|
||||
go func() {
|
||||
task := task.GlobalTask("cert renew scheduler")
|
||||
defer task.Finish("cert renew scheduler stopped")
|
||||
|
||||
|
||||
for {
|
||||
renewalTime := p.ShouldRenewOn()
|
||||
timer := time.NewTimer(time.Until(renewalTime))
|
||||
|
||||
|
||||
select {
|
||||
case <-task.Context().Done():
|
||||
timer.Stop()
|
||||
|
||||
Reference in New Issue
Block a user