update mod

This commit is contained in:
astaxie
2018-11-22 13:08:39 +08:00
parent 2a8d6f943f
commit 55d9b69cd9
28 changed files with 491 additions and 2898 deletions

View File

@@ -128,7 +128,7 @@ func (dr *domainRenewal) do(ctx context.Context) (time.Duration, error) {
}
func (dr *domainRenewal) next(expiry time.Time) time.Duration {
d := expiry.Sub(timeNow()) - dr.m.renewBefore()
d := expiry.Sub(dr.m.now()) - dr.m.renewBefore()
// add a bit of randomness to renew deadline
n := pseudoRand.int63n(int64(renewJitter))
d -= time.Duration(n)